From 77a8a3d33c952acf169417e820b114103a332066 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 29 Jul 2015 16:09:32 +0800 Subject: [PATCH] Add `allow-running-insecure-content`, `allow-display-insecure-content` in BrowserWindow option. --- atom/browser/native_window.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index c03ab1ac24a4..ca5df45d1782 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -434,6 +434,10 @@ void NativeWindow::OverrideWebkitPrefs(content::WebPreferences* prefs) { prefs->experimental_webgl_enabled = b; if (web_preferences_.Get("webaudio", &b)) prefs->webaudio_enabled = b; + if (web_preferences_.Get("allow-displaying-insecure-content", &b)) + prefs->allow_displaying_insecure_content = b; + if (web_preferences_.Get("allow-running-insecure-content", &b)) + prefs->allow_running_insecure_content = b; if (web_preferences_.Get("web-security", &b)) { prefs->web_security_enabled = b; prefs->allow_displaying_insecure_content = !b;