chore: disable the remote module in devtools / chrome extension background scripts (#16866)
* cache isRemoteModuleEnabled * chore: disable the remote module in devtools / chrome extension background scripts
This commit is contained in:
parent
a3cdf46fb6
commit
d8ba1278d1
6 changed files with 20 additions and 17 deletions
|
@ -505,6 +505,7 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches(
|
|||
if (web_contents->GetVisibleURL().SchemeIs("chrome-devtools")) {
|
||||
command_line->AppendSwitch(service_manager::switches::kNoSandbox);
|
||||
command_line->AppendSwitch(::switches::kNoZygote);
|
||||
command_line->AppendSwitch(switches::kDisableRemoteModule);
|
||||
}
|
||||
auto* web_preferences = WebContentsPreferences::From(web_contents);
|
||||
if (web_preferences)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue