Closed Bug 2085463 Opened 1 month ago Closed 24 days ago

[wpt-sync] Sync PR 64061 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327908

Categories

(Core :: Privacy: Anti-Tracking, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Pouneh Bahrami <pbahrami@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327908

WebKit export from bug: SharedWorker /<!----> ServiceWorker requests can inherit Storage Access grants that DedicatedWorker requests correctly cannot

<pre>
Storage access should not be inherited by SharedWorkers and ServiceWorkers

<a href="https://rdar.apple.com/158814068">rdar://158814068</a> stopped DedicatedWorker requests from using the storage access
grant of the page that created them. It only covered dedicated workers, not
SharedWorkers or ServiceWorkers. The same gap existed for WebSockets
(<a href="https://rdar.apple.com/176030553">rdar://176030553</a>).

I could not reproduce an observable bug for SharedWorker or ServiceWorker. I
added WPT tests for both, and they pass without this change: neither worker
sends the cookie, same as DedicatedWorker. The likely reason is that a Storage
Access grant belongs to the page that obtained it, and these workers run on
their own separate page, so the grant does not apply to them.
So I flag every worker-initiated request as such, so this no longer depends on that
detail. This is hardening only, with no known user-visible change.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=327908">https://bugs.webkit.org/show_bug.cgi?id=327908</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/324282@main">https://commits.webkit.org/324282@main</a>
</pre>

Component: web-platform-tests → Privacy: Anti-Tracking
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 42 tests and 1 subtests

Status Summary

Firefox

OK : 2[GitHub] 36[Gecko-linux2404-64-debug] 37[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-32-25h2-debug] 38[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-windows11-64-25h2-debug] 39[Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt] 40[Gecko-android-em-14-x86_64-opt-geckoview] 42[Gecko-linux2404-64-opt]
PASS : 5[GitHub] 123[Gecko-windows11-32-25h2-debug] 127[Gecko-windows11-32-25h2-opt] 131[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-windows11-64-25h2-debug] 133[Gecko-windows11-64-25h2-opt] 134[Gecko-linux2404-64-opt]
CRASH : 1
FAIL : 1[GitHub] 18[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 19[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 2[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-linux2404-64-debug, Gecko-windows11-32-25h2-debug] 3[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug] 4[Gecko-windows11-64-25h2-opt]
NOTRUN : 2

Chrome

OK : 2
FAIL : 6

Safari

OK : 2
PASS : 6

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Crashes

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.