- From: Monica Chintala <notifications@github.com>
- Date: Mon, 09 Nov 2026 15:28:36 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/pull/1855@github.com>
Related to w3c/ServiceWorker#1606.
The registration, Cache API, and Clients API migrations have already landed. This follow-up addresses two places where the remaining wording does not explicitly preserve the storage-key boundary:
- **Jobs:** key the job queue map by `(storage key, serialized scope URL)` and require equal storage keys for equivalent jobs. With unequal keys and otherwise identical inputs, the current scope-only queue and equivalence rules can coalesce a second partition's request into the first partition's job. The second registration job would not run and its promise would receive the first registration's result.
- **Activation:** obtain each candidate client's storage key and match its creation URL against that key. Resolve `ready` only when the matching registration is the activating registration. Skip clients without an environment settings object and failed key acquisition.
- **Registration prose:** describe the already-keyed registration map consistently, including distinct registrations with the same scope but unequal keys.
This reuses existing Storage algorithms and does not change the Storage Standard or prescribe a partition-key layout. Today's normative storage keys contain only an origin, so the cross-partition traces assume the richer keys that motivated w3c/ServiceWorker#1606; this is not a report of a reproduced browser bug.
### Scope and issue closure
This is a narrow completion of storage-key routing, not all Storage integration. Persistent registration/bucket integration remains separate work under w3c/ServiceWorker#1230.
The review also identified pre-existing follow-up questions about failed key acquisition at other call sites and passing a reserved, potentially non-settings-object client to the Storage bottle-map algorithm in Handle Fetch. This PR does not resolve those questions or introduce a new bottle-map lookup API. Maintainers should decide their effect on closing w3c/ServiceWorker#1606; this PR intentionally does not auto-close it.
### Validation and review
- Strict Bikeshed build passed: `bikeshed --no-update --die-on=warning --print=plain spec index.bs index.html`.
- `git diff --check` passed; Web IDL blocks and explicit source anchors are unchanged, with no new broken generated internal fragment links.
- Independent Claude Sonnet 5.5 review through Copilot found no high-confidence introduced defects. After checking concrete job-coalescing and activation traces, the reviewer agreed that both are relevant omissions for richer partitioned keys.
- No browser/WPT tests were run or added. Existing partitioning WPT sources were inspected; the unequal-key traces are not expressible using only today's normative origin-only key model. Focused browser-partitioning coverage can be considered alongside review.
Only `index.bs` is included; generated HTML is not part of this PR.
<!--
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.w3.org/monica-ch/ServiceWorker/pull/1855.html" title="Last updated on Nov 9, 2026, 11:28 PM UTC (b2044ee)">Preview</a> | <a href="https://pr-preview.w3.org/w3c/ServiceWorker/1855/57dfd24...monica-ch:b2044ee.html" title="Last updated on Nov 9, 2026, 11:28 PM UTC (b2044ee)">Diff</a>
You can view, comment on, or merge this pull request online at:
https://github.com/w3c/ServiceWorker/pull/1855
-- Commit Summary --
* Scope service worker jobs and activation by storage key
-- File Changes --
M index.bs (18)
-- Patch Links --
https://github.com/w3c/ServiceWorker/pull/1855.patch
https://github.com/w3c/ServiceWorker/pull/1855.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1855
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/ServiceWorker/pull/1855@github.com>
Received on Monday, 9 November 2026 23:28:40 UTC