service worker: Add tests for throttling and service worker interception.
This adds tests that won't pass yet for a smaller CL. Split off of https://chromium-review.googlesource.com/c/chromium/src/+/1174204 Tests that: - FetchEventForNavigationHasThrottledRequest: The service worker fetch event observes headers modified by a throttle during navigation. This is valid in both NetworkService and S13nServiceWorker. - RedirectOccursBeforeFetchEvent: The service worker only sees the post-redirect request when a throttle redirects. This is valid in both NetworkService and S13nServiceWorker. - NavigationHasThrottledRequestHeadersAfterNetworkFallback: After a service worker falls back to network, the request contains the headers modified by throttles during navigation. This is only valid for NetworkService. Headers are not propagated to the network request in the S13nServiceWorker case. - NavigationPreloadHasThrottledRequestHeaders: When navigation preload is enabled, the navigation preload request contains the headers modified by throttles during navigation. This is valid for both NetworkService and S13nServiceWorker. Bug: 873575 Change-Id: Id7d74a9cf7f0a4f15eebe06882039a108e176263 Reviewed-on: https://chromium-review.googlesource.com/1180832Reviewed-by:Matt Falkenhagen <falken@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#584394}
Showing
This diff is collapsed.
Please register or sign in to comment