Merge pull request #2372 from atom/allow-insecure-content

Add allowing-insecure-content option
This commit is contained in:
Cheng Zhao 2015-07-30 09:38:27 +08:00
commit bbce2c7e2f
2 changed files with 12 additions and 1 deletions

View file

@ -439,6 +439,10 @@ void NativeWindow::OverrideWebkitPrefs(content::WebPreferences* prefs) {
prefs->allow_displaying_insecure_content = !b;
prefs->allow_running_insecure_content = !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("extra-plugin-dirs", &list)) {
if (content::PluginService::GetInstance()->NPAPIPluginsSupported()) {
for (size_t i = 0; i < list.size(); ++i)