chore: move more constants to options_switches.h/cc (#13093)
* Add options::kNativeWindowOpen * Add options::kSandbox * Add options::kPlugins * Add options::kWebSecurity * Add options::kAllowRunningInsecureContent * Add options::kOffscreen
This commit is contained in:
parent
ec44fb79d8
commit
45e78728bd
11 changed files with 47 additions and 22 deletions
|
@ -181,8 +181,9 @@ void AtomBrowserClient::RenderProcessWillLaunch(
|
|||
auto* web_preferences =
|
||||
WebContentsPreferences::From(GetWebContentsFromProcessID(process_id));
|
||||
if (web_preferences) {
|
||||
prefs.sandbox = web_preferences->IsEnabled("sandbox");
|
||||
prefs.native_window_open = web_preferences->IsEnabled("nativeWindowOpen");
|
||||
prefs.sandbox = web_preferences->IsEnabled(options::kSandbox);
|
||||
prefs.native_window_open =
|
||||
web_preferences->IsEnabled(options::kNativeWindowOpen);
|
||||
prefs.disable_popups = web_preferences->IsEnabled("disablePopups");
|
||||
}
|
||||
AddProcessPreferences(host->GetID(), prefs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue