[w3c/ServiceWorker] Editorial: queue a task in Client / Clients API (PR #1836)

Updates to:
- [client-postmessage-options](https://w3c.github.io/ServiceWorker/#dom-client-postmessage) — queue tasks to fire `messageerror` and dispatch `message` on the target client's responsible event loop.
- [clients-get](https://w3c.github.io/ServiceWorker/#dom-clients-get) — restructured per @yoshisatoyanagisawa's suggestion to queue once and run "invoke Resolve Get Client Promise" + "abort" as substeps; also queues the fall-through resolve.
- [clients-claim](https://w3c.github.io/ServiceWorker/#dom-clients-claim) — queue the final resolve with undefined on the promise's responsible event loop.

All of these resolved/rejected promises or fired events directly from an "in parallel" block, which violates the "don't touch JS objects from parallel" rule.

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

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

-- Commit Summary --

  * Editorial: queue a task to resolve promise or fire event in Client/Clients API

-- File Changes --

    M index.bs (12)

-- Patch Links --

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

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

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

Received on Thursday, 16 July 2026 21:03:00 UTC