- From: Monica Chintala <notifications@github.com>
- Date: Thu, 16 Jul 2026 14:04:46 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/pull/1837@github.com>
Updates to:
- [cache-match](https://w3c.github.io/ServiceWorker/#dom-cache-match) — wrap each resolve/reject path in a `Queue a task` on the promise's responsible event loop.
- [cache-matchall](https://w3c.github.io/ServiceWorker/#dom-cache-matchall) — wrap the CORS-check `TypeError` rejection in a `Queue a task` with an abort step.
Both methods resolved/rejected the promise directly from an "in parallel" block, which violates the "don't touch JS objects from parallel" rule.
This is part 5/6 of #1740. Split out from #1755 for focused review.
<!--
This comment and the below content is programmatically generated.
You may add a comma-separated list of anchors you'd like a
direct link to below (e.g. #idl-serializers, #idl-sequence):
Don't remove this comment or modify anything below this line.
If you don't want a preview generated for this pull request,
just replace the whole of this comment's content by "no preview"
and remove what's below.
-->
***
<a href="https://pr-preview.s3.amazonaws.com/monica-ch/ServiceWorker/pull/1837.html" title="Last updated on Jul 16, 2026, 9:04 PM UTC (b867686)">Preview</a> | <a href="https://pr-preview.s3.amazonaws.com/w3c/ServiceWorker/1837/e91ddff...monica-ch:b867686.html" title="Last updated on Jul 16, 2026, 9:04 PM UTC (b867686)">Diff</a>
You can view, comment on, or merge this pull request online at:
https://github.com/w3c/ServiceWorker/pull/1837
-- Commit Summary --
* Editorial: queue a task to resolve/reject promise in Cache API
-- File Changes --
M index.bs (13)
-- Patch Links --
https://github.com/w3c/ServiceWorker/pull/1837.patch
https://github.com/w3c/ServiceWorker/pull/1837.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1837
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/ServiceWorker/pull/1837@github.com>
Received on Thursday, 16 July 2026 21:04:50 UTC