]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't show insecure content by default
authorCheng Zhao <zcbenz@gmail.com>
Wed, 7 Jan 2015 04:53:25 +0000 (20:53 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 8 Jan 2015 19:50:55 +0000 (11:50 -0800)
This follows the behavior of Chrome.

atom/browser/atom_browser_client.cc

index 827dbe4e159cbd3783eaffd047e279be65a4b59c..4a5d2d968bede149993ae6bf9e4c640206e50117 100644 (file)
@@ -87,8 +87,8 @@ void AtomBrowserClient::OverrideWebkitPrefs(
   prefs->allow_universal_access_from_file_urls = true;
   prefs->allow_file_access_from_file_urls = true;
   prefs->experimental_webgl_enabled = true;
-  prefs->allow_displaying_insecure_content = true;
-  prefs->allow_running_insecure_content = true;
+  prefs->allow_displaying_insecure_content = false;
+  prefs->allow_running_insecure_content = false;
 
   // Turn off web security for devtools.
   if (url.SchemeIs("chrome-devtools")) {