[w3c/ServiceWorker] Editorial: queue a task in ServiceWorkerContainer.getRegistration (PR #1833)

Update to [navigator-service-worker-getRegistration](https://w3c.github.io/ServiceWorker/#dom-serviceworkercontainer-getregistration).

The step running in parallel resolved/rejected the promise directly, which violates the "don't touch JS objects from parallel" rule. Wrap it in a `Queue a task` on the responsible event loop.

This is part 1/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/1833.html" title="Last updated on Jul 16, 2026, 8:56 PM UTC (4c4754d)">Preview</a> | <a href="https://pr-preview.s3.amazonaws.com/w3c/ServiceWorker/1833/e91ddff...monica-ch:4c4754d.html" title="Last updated on Jul 16, 2026, 8:56 PM UTC (4c4754d)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1833

-- Commit Summary --

  * Editorial: queue a task to resolve promise in ServiceWorkerContainer.getRegistration

-- File Changes --

    M index.bs (7)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1833.patch
https://github.com/w3c/ServiceWorker/pull/1833.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1833
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/pull/1833@github.com>

Received on Thursday, 16 July 2026 20:57:15 UTC