Add CORB/CORS tests for background service_worker declared via manifest.
This CL adds the FromBackgroundServiceWorker_NoSniffXml test. The new test complements the old FromRegisteredServiceWorker_NoSniffXml test, but the new test registers the service worker in a more typical way - via the following entry in the extension manifest: "background": {"service_worker": "sw.js"} Additionally, the new test covers not only a target URL that is covered by extension permissions, but also other-without-permission.com. The old test is still relevant for testing how a 'fetch' event handler of a service worker behaves. One aspect where this is important is where the 'fetch' event handler doesn't handle the fetch - I vaguely remember that I heard that the fallback might use a different URLLoaderFactory from the one normally used from within the service worker. Bug: 1051594 Change-Id: Ic9df888cd0799ce57131e6df93d9c6f39501aedd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2132938Reviewed-by:Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by:
Karan Bhatia <karandeepb@chromium.org> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/master@{#756455}
Showing
Please register or sign in to comment