[w3c/ServiceWorker] Prevent Clients.get() from falling through after a match (PR #1858)

Abort the parallel steps after queuing resolution for a matching client. With the abort inside the queued task, the parallel steps can also queue the `undefined` fallback. Resolve Get Client Promise queues the actual settlement, so the fallback can settle the promise first.

This follows up on #1836. The existing [Clients.get() test](https://github.com/web-platform-tests/wpt/blob/master/service-workers/service-worker/clients-get.https.html) covers matching and unknown client IDs.

I noticed this while reviewing the [Chinese](https://htmlspecs.com/service-workers/), [Japanese](https://jp.htmlspecs.com/service-workers/), and [Korean](https://ko.htmlspecs.com/service-workers/) translations.


<!--
    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/JinDX/ServiceWorker/pull/1858.html" title="Last updated on Nov 12, 2026, 10:46 AM UTC (08e7e02)">Preview</a> | <a href="https://pr-preview.w3.org/w3c/ServiceWorker/1858/57dfd24...JinDX:08e7e02.html" title="Last updated on Nov 12, 2026, 10:46 AM UTC (08e7e02)">Diff</a>
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Prevent Clients.get() from falling through after a match

-- File Changes --

    M index.bs (4)

-- Patch Links --

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

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

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

Received on Thursday, 12 November 2026 10:46:48 UTC