mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: extension web workers net request failing (#45710)
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:
@@ -1052,6 +1052,12 @@ void ElectronBrowserClient::
|
||||
// reason for it, and we could consider supporting it in future.
|
||||
protocol_registry->RegisterURLLoaderFactories(factories,
|
||||
false /* allow_file_access */);
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||
factories->emplace(
|
||||
extensions::kExtensionScheme,
|
||||
extensions::CreateExtensionWorkerMainResourceURLLoaderFactory(
|
||||
browser_context));
|
||||
#endif
|
||||
}
|
||||
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||
|
||||
Reference in New Issue
Block a user