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:
trop[bot] 2025-02-19 22:59:24 -05:00 committed by GitHub
parent 11d1f063bd
commit b63be7b5c7
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)