mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: append network switches to network service process (#20558)
This commit is contained in:
@@ -581,6 +581,16 @@ void AtomBrowserClient::AdjustUtilityServiceProcessCommandLine(
|
||||
if (identity.name() == audio::mojom::kServiceName)
|
||||
command_line->AppendSwitch(::switches::kMessageLoopTypeUi);
|
||||
#endif
|
||||
if (identity.name() == content::mojom::kNetworkServiceName) {
|
||||
// Copy following switches to network service process.
|
||||
static const char* const kCommonSwitchNames[] = {
|
||||
switches::kStandardSchemes, switches::kSecureSchemes,
|
||||
switches::kBypassCSPSchemes, switches::kCORSSchemes,
|
||||
switches::kFetchSchemes, switches::kServiceWorkerSchemes};
|
||||
command_line->CopySwitchesFrom(*base::CommandLine::ForCurrentProcess(),
|
||||
kCommonSwitchNames,
|
||||
base::size(kCommonSwitchNames));
|
||||
}
|
||||
}
|
||||
|
||||
void AtomBrowserClient::DidCreatePpapiPlugin(content::BrowserPpapiHost* host) {
|
||||
|
||||
Reference in New Issue
Block a user