fix: service worker registration with custom protocols (#34290)
Refs https://github.com/electron/electron/issues/32664
This commit is contained in:
parent
38c21b7aca
commit
1639ccf98f
4 changed files with 60 additions and 4 deletions
|
@ -1328,6 +1328,11 @@ void ElectronBrowserClient::
|
|||
DCHECK(browser_context);
|
||||
DCHECK(factories);
|
||||
|
||||
auto* protocol_registry =
|
||||
ProtocolRegistry::FromBrowserContext(browser_context);
|
||||
protocol_registry->RegisterURLLoaderFactories(factories,
|
||||
false /* allow_file_access */);
|
||||
|
||||
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
||||
factories->emplace(
|
||||
extensions::kExtensionScheme,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue