Closed Bug 1793021 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 36100 - [Private Network Access] Fix test cases in service-worker-update.https.window.js

Categories

(Core :: DOM: Networking, task, P4)

task

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Jonathan Hao <phao@chromium.org> wrote:

[Private Network Access] Fix test cases in service-worker-update.https.window.js

(This is a reland of https://crrev.com/c/3878345. The CL itself has no
problem. It was only reverted so another CL can be reverted cleanly.)

The two failing test cases failed not because of PNA checks, but because
the browser sends a Service-Worker header which the server didn't explicitly
allowed. Using serviceWorkerSuccess will make a query that would return
"Access-Control-Allow-Headers: Service-Worker". See also [1]

[1] https://chromium-review.googlesource.com/c/chromium/src/+/3858436

Bug: 1239551
Change-Id: I09c8016e7de39d2e4a8bc1f9b887181d29773096
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3921642
Auto-Submit: Jonathan Hao \<phao@chromium.org>
Commit-Queue: Titouan Rigoudy \<titouan@chromium.org>
Commit-Queue: Jonathan Hao \<phao@chromium.org>
Reviewed-by: Titouan Rigoudy \<titouan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1051862}

Component: web-platform-tests → DOM: Networking
Product: Testing → Core

CI Results

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

Total 1 tests and 5 subtests

Status Summary

Firefox

OK : 1
PASS: 1
FAIL: 4

Chrome

OK : 1
PASS: 1
FAIL: 4

Safari

OK : 1
PASS: 1
FAIL: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7998603ea320 [wpt PR 36100] - [Private Network Access] Fix test cases in service-worker-update.https.window.js, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.