-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CacheStorage: Abort outstanding addAll() requests on error.
The spec requires that requests be aborted on addAll() failure: https://w3c.github.io/ServiceWorker/#cache-addAll See the sections that say "Terminate all the ongoing fetches initiated by requests with the aborted flag set." Note, there appear to be a few places where this text is missing as noted in: w3c/ServiceWorker#1543 Currently there is no way to reliably observe that this abort takes place in a WPT test. The AbortSignal is not updated for internal abort decisions and the information is not propagated to the signal on a service worker FetchEvent.request. Therefore this test only adds a simple unit test to verify the related AbortController was triggered. Bug: 1130781 Change-Id: I0e0498741a6d387147a2ef0ea9d31feaa805dee8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2429308 Reviewed-by: Marijn Kruisselbrink <mek@chromium.org> Commit-Queue: Ben Kelly <wanderview@chromium.org> Cr-Commit-Position: refs/heads/master@{#812273} GitOrigin-RevId: d6d55147aa1276bb6815e520b71b6c8277ece517
- Loading branch information
1 parent
a332aec
commit 4585912
Showing
3 changed files
with
87 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters