diff options
Diffstat (limited to 'chrome/browser/extensions/extension_protocols.cc')
-rw-r--r-- | chrome/browser/extensions/extension_protocols.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_protocols.cc b/chrome/browser/extensions/extension_protocols.cc index 4223894..1ff45d2 100644 --- a/chrome/browser/extensions/extension_protocols.cc +++ b/chrome/browser/extensions/extension_protocols.cc @@ -400,6 +400,12 @@ bool AllowExtensionResourceLoad(net::URLRequest* request, return true; } + // Check workers so that importScripts works from extension workers. + if (extension_info_map->worker_process_map().Contains( + request->url().host(), info->GetChildID())) { + return true; + } + // Extensions with webview: allow loading certain resources by guest renderers // with privileged partition IDs as specified in the manifest file. ExtensionRendererState* renderer_state = |