NetworkService: Support subresource requests to extension service workers.
This CL makes it so ServiceWorkerSubresourceLoaderFactory uses a factory created from a ChildURLLoaderFactoryBundle rather than the direct network factory for "network fallback" after service worker does not provide a response to a FetchEvent. The direct network factory didn't work in the case of chrome-extension:// URLs, since network service does not understand such URLs. To create the fallback factory, we use the default ChildURLLoaderFactoryBundle of the RenderFrameImpl, except remove the "default factory" from that bundle. The default factory can be something like the AppCache loader factory, which we don't want to hit when performing network fallback. Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo Change-Id: If6ae1d6fc161cae8ec4574417a0d8954215f878e Bug: 836129 Reviewed-on: https://chromium-review.googlesource.com/1032354 Commit-Queue: Matt Falkenhagen <falken@chromium.org> Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Cr-Commit-Position: refs/heads/master@{#557465}
Showing
Please register or sign in to comment