From 19d6d171b1ae04e00c40e8e780c99eab613b5544 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 6 Jan 2015 20:53:25 -0800 Subject: [PATCH] Don't show insecure content by default This follows the behavior of Chrome. --- atom/browser/atom_browser_client.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/atom_browser_client.cc b/atom/browser/atom_browser_client.cc index 827dbe4e159..4a5d2d968be 100644 --- a/atom/browser/atom_browser_client.cc +++ b/atom/browser/atom_browser_client.cc @@ -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")) {