Closed Bug 1944496 Opened 11 days ago Closed 9 days ago

[wpt-sync] Sync PR 50363 - Raise for the race-network-and-fetch-handler source without handler

Categories

(Core :: DOM: Service Workers, task, P4)

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 50363 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/50363
Details from upstream follow.

Yoshisato Yanagisawa <yyanagisawa@chromium.org> wrote:

Raise for the race-network-and-fetch-handler source without handler

This reflects the change in https://github.com/w3c/ServiceWorker/pull/1719.
Instead of silently fallback to network, let me make addRoutes() raise
if the race-network-and-fetch-handler source is used without having a
fetch handler.

Fixed: 391990601
Change-Id: Ic944e183286cd056235b0fe272c543533dfaa86f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6211317
Reviewed-by: Takashi Toyoshima \<toyoshim@chromium.org>
Commit-Queue: Yoshisato Yanagisawa \<yyanagisawa@chromium.org>
Reviewed-by: Shunya Shishido \<sisidovski@chromium.org>
Reviewed-by: Hidehiko Abe \<hidehiko@chromium.org>
Reviewed-by: Keita Suzuki \<suzukikeita@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1412763}

Component: web-platform-tests → DOM: Service Workers
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 3 subtests

Status Summary

Firefox

OK : 1
FAIL: 3

Chrome

OK : 1
PASS: 2
FAIL: 1

Safari

OK : 1
FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /service-workers/service-worker/static-router-no-fetch-handler.https.html [wpt.fyi]
    • The router rule is evaluated without fetch handlers in service worker: FAIL (Chrome: PASS, Safari: FAIL)
    • addRoutes should raise if the fetch-event source is used without onfetch: FAIL (Chrome: PASS, Safari: FAIL)
    • addRoutes should raise if the race-network-and-fetch-handler source is used without onfetch: FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9ae5a8a8ad4e [wpt PR 50363] - Raise for the race-network-and-fetch-handler source without handler, a=testonly https://hg.mozilla.org/integration/autoland/rev/ef6dc3cbf0f3 [wpt PR 50363] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.