fix: extension web workers net request failing (#45698)

This commit is contained in:
Sam Maddock 2025-02-19 13:08:28 -05:00 committed by GitHub
parent 22b7403cd1
commit b50066f420
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1074,6 +1074,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)