From 1d0568dd5b73b06326831d6866f94240521ace5c Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 29 Jul 2015 16:15:16 +0800 Subject: [PATCH] :memo: `allow-running-insecure-content` and `allow-displaying-insecure-content`. --- docs/api/browser-window.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index cee68183..b6f25446 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -76,7 +76,15 @@ You can also create a window without chrome by using textured window. Defaults to `true`. * `web-preferences` Object - Settings of web page's features * `javascript` Boolean - * `web-security` Boolean + * `web-security` Boolean - When setting `false`, it will disable the same-origin + policy(Ususally using testing websites by people) and set `allow_displaying_insecure_content` + and `allow_running_insecure_content` to `true`. + * `allow-displaying-insecure-content` Boolean - Allow a https page to display + content like image from http URLs. This option will be overrided to `true` + when `web-security` option is set. + * `allow-running-insecure-content` Boolean - Allow a https page to run JavaScript, + CSS or plugins from http URLs. This option will be overrided to `true` when + `web-security` option is set. * `images` Boolean * `java` Boolean * `text-areas-are-resizable` Boolean -- 2.43.0