← back to v159 · serviceworker-static-routing-distinct-typeerror-message-for-cancelled-race-netwo

conformance · v159

v159 · serviceworker-static-routing-distinct-typeerror-message-for-cancelled-race-netwo — conformance probe

7 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.

browser: … spec: https://w3c.github.io/ServiceWorker/#dom-routersourceenum-race-network-and-fetch-handler chromestatus: #5124748525830144 generated 2026-11-22T12:00:00Z by weekly-hardening-builder
0
pass
0
fail
0
blocked
7
total
id contract kind verdict detail
race-route-accepted InstallEvent.addRoutes() accepts a rule whose source is "race-network-and-fetch-handler" (the route this change refines), so requests to it are raced. spec ↗ script …
raced-request-matched-race-source A request to the routed URL reports workerMatchedRouterSource "race-network-and-fetch-handler" in Resource Timing, proving it really went down the race path. spec ↗ script …
uncancelled-race-fetch-fulfils Control: when nothing settles respondWith() before the network, the handler's fetch(event.request) fulfils with HTTP 200 (no cancellation, no error). spec ↗ script …
cancelled-race-fetch-rejects-typeerror When an offline-fallback timer settles respondWith() before response headers arrive, the handler's deduplicated fetch(event.request) rejects with a TypeError (the type is the interoperable contract WPT asserts). spec ↗ script …
cancelled-race-fetch-distinct-message That cancelled fetch(event.request) rejects with exactly "The service worker race-network-and-fetch-handler request was cancelled before 'fetch()' settled." instead of "Failed to fetch" (Chrome 159+, feature ServiceWorkerRaceNetworkRequestAbortedErrorMessage). spec ↗ script …
immediate-respondwith-distinct-message Answering respondWith() immediately from cache while fetch(event.request) is in flight also cancels the raced request, and that rejection carries the same distinct message. spec ↗ script …
genuine-error-keeps-generic-message A genuine network failure on the same raced route (a 301 fetched with redirect: "error") still rejects with a TypeError whose message is NOT the race-cancellation message. spec ↗ script …