- From: Yoshisato Yanagisawa <notifications@github.com>
- Date: Tue, 10 Jun 2025 18:56:08 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/pull/1777@github.com>
This pull request addresses a critical issue in the `race-network-and-fetch-handler` algorithm where the process would hang indefinitely. **Problem:** If both the network fetch and the corresponding fetch handler failed, the algorithm would not enqueue any response. This led to a deadlock, as the algorithm would continue waiting for a response to be added to the queue. **Background:** This issue was already addressed by @monica-ch within the scope of pull request #1764. Since that PR has seen no recent progress, I have created this new PR by isolating only the necessary changes to fix the stall. **Purpose:** The immediate goal of this PR is to unblock progress on the ServiceWorkerAutoPreload specification ([WICG/service-worker-auto-preload](https://www.google.com/search?q=https://github.com/WICG/service-worker-auto-preload)), which utilizes the corrected algorithm. <!-- 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/1777.html" title="Last updated on Jun 11, 2025, 1:55 AM UTC (9a14512)">Preview</a> | <a href="https://pr-preview.s3.amazonaws.com/w3c/ServiceWorker/1777/ef029c5...yoshisatoyanagisawa:9a14512.html" title="Last updated on Jun 11, 2025, 1:55 AM UTC (9a14512)">Diff</a> You can view, comment on, or merge this pull request online at: https://github.com/w3c/ServiceWorker/pull/1777 -- Commit Summary -- * add race-network-and-cache * update failure cases * Follow spec format * use |raceResponse| when empty * Remove race-network-and-cache source enum etc. * Remove unnecessary change to the enum -- File Changes -- M docs/index.bs (12) -- Patch Links -- https://github.com/w3c/ServiceWorker/pull/1777.patch https://github.com/w3c/ServiceWorker/pull/1777.diff -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1777 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/pull/1777@github.com>
Received on Wednesday, 11 June 2025 01:56:13 UTC