fix: extension web workers net request failing (#45708)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com>
This commit is contained in:
parent
11d1f063bd
commit
b63be7b5c7
1 changed files with 6 additions and 0 deletions
|
@ -1074,6 +1074,12 @@ void ElectronBrowserClient::
|
||||||
// reason for it, and we could consider supporting it in future.
|
// reason for it, and we could consider supporting it in future.
|
||||||
protocol_registry->RegisterURLLoaderFactories(factories,
|
protocol_registry->RegisterURLLoaderFactories(factories,
|
||||||
false /* allow_file_access */);
|
false /* allow_file_access */);
|
||||||
|
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||||
|
factories->emplace(
|
||||||
|
extensions::kExtensionScheme,
|
||||||
|
extensions::CreateExtensionWorkerMainResourceURLLoaderFactory(
|
||||||
|
browser_context));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue