File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -370,6 +370,7 @@ void ShellContentBrowserClient::OverrideWebkitPrefs(
370
370
const GURL& url,
371
371
content::WebPreferences* prefs) {
372
372
nw::Package* package = shell_browser_main_parts ()->package ();
373
+ CommandLine* cmd_line = CommandLine::ForCurrentProcess ();
373
374
374
375
// Disable web security.
375
376
prefs->dom_paste_enabled = true ;
@@ -384,6 +385,11 @@ void ShellContentBrowserClient::OverrideWebkitPrefs(
384
385
prefs->plugins_enabled = true ;
385
386
prefs->java_enabled = false ;
386
387
388
+ prefs->allow_displaying_insecure_content =
389
+ !(cmd_line->HasSwitch (switches::kNoDisplayingInsecureContent ));
390
+ prefs->allow_running_insecure_content =
391
+ cmd_line->HasSwitch (switches::kAllowRunningInsecureContent );
392
+
387
393
base::DictionaryValue* webkit;
388
394
if (package->root ()->GetDictionary (switches::kmWebkit, &webkit)) {
389
395
webkit->GetBoolean (switches::kmJava, &prefs->java_enabled );
You can’t perform that action at this time.
0 commit comments