Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Clear-Site-Data WPT that clears active service worker.
A service worker was handling the network request for an iframe page load. That load also cleared storage (and service workers) via Clear- Site-Data. This interrupted the page load and prevented the test from completing. Specifically, 'support/echo-clear-site-data.py' was returning [Clear-Site-Data: "storage"] which clobbered the service worker which was registered for 'support/' which prevented the subload of 'support/test_utils.sub.js'. The solution is to narrow the scope of the service worker so that it doesn't apply to the page the iframe is loading. Bug: 1198698 Change-Id: I6724f5ef8e2140d031b6c570b9c708359a97d140 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4334942 Reviewed-by: Ayu Ishii <[email protected]> Commit-Queue: Evan Stade <[email protected]> Cr-Commit-Position: refs/heads/main@{#1116968}
- Loading branch information