[w3c/ServiceWorker] Less fragile |fetchController| termination check (PR #1780)

This is a follow up of https://github.com/w3c/ServiceWorker/pull/1777#discussion_r2141544666.
It originally https://github.com/w3c/ServiceWorker/pull/1779, but closed by mistake.

https://infra.spec.whatwg.org/#abort-when adds the check each time the step is executed. However, there is only a step between and the abort-when and if-aborted, it should be less effective abort than we expect. Let me add a step inside the callback in case.


<!--
    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/yoshisatoyanagisawa/ServiceWorker/pull/1780.html" title="Last updated on Jun 13, 2025, 6:47 AM UTC (ed117fd)">Preview</a> | <a href="https://pr-preview.s3.amazonaws.com/w3c/ServiceWorker/1780/a402c93...yoshisatoyanagisawa:ed117fd.html" title="Last updated on Jun 13, 2025, 6:47 AM UTC (ed117fd)">Diff</a>
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * More easy to abort
  * abort steps upon the |fetchController| state.
  * also add the step to navigation preload
  * Updated

-- File Changes --

    M docs/index.bs (10)

-- Patch Links --

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

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

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

Received on Friday, 13 June 2025 06:47:38 UTC