Extension SW: Add tests that serve web_accessible_resources from a SW.
This CL also fixes an issue in DocumentThreadableLoader: DTL used to
only intercept http and https protocol requests. This CL expands it
to match content/ by using
SchemeRegistry::shouldTreatURLSchemeAsAllowingServiceWorkers().
Without this change fetch interception from extension SW would always
hit an ASSERT (in debug).
ServiceWorkerTest.WebAccessibleResourcesFetch:
Tests that a Fetch request is served correctly by a SW when
SW is controlling an extension.
ServiceWorkerTest.WebAccessibleResourcesIframeSrc:
From a page outside an extension, an iframe is loaded with a .src of an
extension URL that is listed in the extension's web_accessible_resources.
The test verifies that if a Service Worker is controlling the extension,
it will also control the iframe's requested extension resource.
BUG=
545535,
567382
Committed:
https://crrev.com/aea32c234f38db3f70454c86cbd3b40c833482e1
Cr-Commit-Position: refs/heads/master@{#367375}