mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add disable-javascript command-line flag to match documentation (issue #1848)
This commit is contained in:
@@ -49,6 +49,8 @@ void SetDefaultPrefs(content::WebPreferences& web) {
|
||||
const base::CommandLine* command_line =
|
||||
base::CommandLine::ForCurrentProcess();
|
||||
|
||||
web.javascript_enabled =
|
||||
!command_line->HasSwitch(switches::kDisableJavascript);
|
||||
web.allow_scripts_to_close_windows =
|
||||
!command_line->HasSwitch(switches::kDisableJavascriptCloseWindows);
|
||||
web.javascript_can_access_clipboard =
|
||||
|
Reference in New Issue
Block a user