[wpt-sync] Sync PR 64061 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327908
Categories
(Core :: Privacy: Anti-Tracking, task, P4)
Tracking
()
| 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>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=112334
| Assignee | ||
Comment 2•27 days ago
|
||
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
- /storage-access-api/requestStorageAccess-service-worker.sub.https.tentative.window.html [wpt.fyi]:
CRASH[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-linux2404-64-debug,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug],OK[Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-opt,GitHub]
New Tests That Don't Pass
- /storage-access-api/hasStorageAccess-insecure.sub.window.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-opt],TIMEOUT[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-linux2404-64-debug,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /storage-access-api/hasStorageAccess.sub.https.window.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-opt-geckoview,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[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-linux2404-64-debug] - /storage-access-api/requestStorageAccess-cross-origin-iframe-navigation-relax.sub.https.window.html [wpt.fyi]
- Same-site-initiated same-origin navigations preserve storage access:
FAIL
- Same-site-initiated same-origin navigations preserve storage access:
- /storage-access-api/requestStorageAccess-insecure.sub.window.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-opt],SKIP[Gecko-linux2404-64-debug],TIMEOUT[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt]- [top-level-context] document.requestStorageAccess() should be rejected when called with a user gesture in insecure context:
PASS[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-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug],TIMEOUT[Gecko-windows11-64-25h2-opt]
- [top-level-context] document.requestStorageAccess() should be rejected when called with a user gesture in insecure context:
- /storage-access-api/requestStorageAccess-nested-cross-origin-iframe.sub.https.window.html [wpt.fyi]:
OK[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-linux2404-64-opt,Gecko-windows11-64-25h2-opt],SKIP[Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt],TIMEOUT[Gecko-windows11-64-25h2-debug] - /storage-access-api/requestStorageAccess-nested-cross-site-iframe.sub.https.window.html [wpt.fyi]:
OK[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-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],TIMEOUT[Gecko-windows11-32-25h2-opt]- [nested-cross-site-frame] document.requestStorageAccess() should resolve in top-level frame or same-site iframe, otherwise reject with a NotAllowedError with no user gesture.:
PASS[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-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],TIMEOUT[Gecko-windows11-32-25h2-opt] - [nested-cross-site-frame] document.requestStorageAccess() should be resolved with no user gesture when a permission grant exists, and should allow cookie access:
NOTRUN[Gecko-windows11-32-25h2-opt],PASS[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-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - [nested-cross-site-frame] document.requestStorageAccess() should be rejected with a NotAllowedError with denied permission:
NOTRUN[Gecko-windows11-32-25h2-opt],PASS[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-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt]
- [nested-cross-site-frame] document.requestStorageAccess() should resolve in top-level frame or same-site iframe, otherwise reject with a NotAllowedError with no user gesture.:
- /storage-access-api/requestStorageAccess-nested-same-origin-iframe.sub.https.window.html [wpt.fyi]:
OK[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-linux2404-64-opt,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-windows11-32-25h2-debug] - /storage-access-api/requestStorageAccess-same-site-iframe.sub.https.window.html [wpt.fyi]:
OK[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-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug],TIMEOUT[Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-opt] - /storage-access-api/requestStorageAccess-sandboxed-iframe-no-storage-access.sub.https.window.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,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],SKIP[Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview] - /storage-access-api/requestStorageAccess-service-worker.sub.https.tentative.window.html [wpt.fyi]:
CRASH[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-linux2404-64-debug,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug],OK[Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-opt,GitHub] (Chrome:OK, Safari:OK) - /storage-access-api/requestStorageAccess-shared-worker.sub.https.tentative.window.html [wpt.fyi]
- SharedWorker WebSocket doesn't inherit storage access:
FAIL(Chrome:FAIL, Safari:PASS)
- SharedWorker WebSocket doesn't inherit storage access:
- /storage-access-api/storage-access-beyond-cookies.BlobURLDedicatedWorker.sub.https.tentative.window.html [wpt.fyi]
- Verify that if the third-party context creates a blob URL using the StorageAccessHandle and sends it to the dedicated worker, the dedicated worker fetch succeeds.:
FAIL
- Verify that if the third-party context creates a blob URL using the StorageAccessHandle and sends it to the dedicated worker, the dedicated worker fetch succeeds.:
- /storage-access-api/storage-access-beyond-cookies.BlobURLSharedWorker.sub.https.tentative.window.html [wpt.fyi]
- Verify a blob URL created via URL.createObjectURL from the third-party context shouldn't be useable as the shared worker script when it's passed to saa_handle.SharedWorker.:
FAIL
- Verify a blob URL created via URL.createObjectURL from the third-party context shouldn't be useable as the shared worker script when it's passed to saa_handle.SharedWorker.:
- /storage-access-api/storage-access-beyond-cookies.BroadcastChannel.sub.https.window.html [wpt.fyi]
- Verify StorageAccessAPIBeyondCookies for Broadcast Channel:
FAIL
- Verify StorageAccessAPIBeyondCookies for Broadcast Channel:
- /storage-access-api/storage-access-beyond-cookies.SharedWorker.sub.https.window.html [wpt.fyi]
- Verify StorageAccessAPIBeyondCookies for Shared Worker:
FAIL
- Verify StorageAccessAPIBeyondCookies for Shared Worker:
- /storage-access-api/storage-access-beyond-cookies.blobStorage.sub.https.window.html [wpt.fyi]:
OK[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],SKIP[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]- Verify StorageAccessAPIBeyondCookies for Blob Storage:
FAIL
- Verify StorageAccessAPIBeyondCookies for Blob Storage:
- /storage-access-api/storage-access-beyond-cookies.caches.sub.https.window.html [wpt.fyi]
- Verify StorageAccessAPIBeyondCookies for Cache Storage:
FAIL
- Verify StorageAccessAPIBeyondCookies for Cache Storage:
- /storage-access-api/storage-access-beyond-cookies.cookies.sub.https.window.html [wpt.fyi]
- Verify StorageAccessAPIBeyondCookies for Cookies:
FAIL
- Verify StorageAccessAPIBeyondCookies for Cookies:
- /storage-access-api/storage-access-beyond-cookies.estimate.sub.https.window.html [wpt.fyi]
- Verify StorageAccessAPIBeyondCookies for Quota:
FAIL
- Verify StorageAccessAPIBeyondCookies for Quota:
- /storage-access-api/storage-access-beyond-cookies.getDirectory.sub.https.window.html [wpt.fyi]
- Verify StorageAccessAPIBeyondCookies for Origin Private File System:
FAIL
- Verify StorageAccessAPIBeyondCookies for Origin Private File System:
- /storage-access-api/storage-access-beyond-cookies.indexedDB.sub.https.window.html [wpt.fyi]
- Verify StorageAccessAPIBeyondCookies for IndexedDB:
FAIL
- Verify StorageAccessAPIBeyondCookies for IndexedDB:
- /storage-access-api/storage-access-beyond-cookies.localStorage.sub.https.window.html [wpt.fyi]
- Verify StorageAccessAPIBeyondCookies for Local Storage:
FAIL
- Verify StorageAccessAPIBeyondCookies for Local Storage:
- /storage-access-api/storage-access-beyond-cookies.locks.sub.https.window.html [wpt.fyi]:
OK[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-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-linux2404-64-debug]- Verify StorageAccessAPIBeyondCookies for Web Locks:
FAIL
- Verify StorageAccessAPIBeyondCookies for Web Locks:
- /storage-access-api/storage-access-beyond-cookies.none.sub.https.window.html [wpt.fyi]
- Verify StorageAccessAPIBeyondCookies for None:
FAIL
- Verify StorageAccessAPIBeyondCookies for None:
- /storage-access-api/storage-access-beyond-cookies.sessionStorage.sub.https.window.html [wpt.fyi]
- Verify StorageAccessAPIBeyondCookies for Session Storage:
FAIL
- Verify StorageAccessAPIBeyondCookies for Session Storage:
- /storage-access-api/storage-access-headers.tentative.https.sub.window.html [wpt.fyi]
- Sec-Fetch-Storage-Access maintains value on same-origin redirect.:
FAIL - Sec-Fetch-Storage-Access is not 'active' after cross-origin same-site redirection.:
FAIL - Sec-Fetch-Storage-Access loses value on a cross-site redirection.:
FAIL
- Sec-Fetch-Storage-Access maintains value on same-origin redirect.:
- /storage-access-api/storage-access-permission.sub.https.window.html [wpt.fyi]:
OK[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-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-linux2404-64-debug]
Tests Disabled in Gecko Infrastructure
- /storage-access-api/requestStorageAccess-insecure.sub.window.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-opt],SKIP[Gecko-linux2404-64-debug],TIMEOUT[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /storage-access-api/requestStorageAccess-nested-cross-origin-iframe.sub.https.window.html [wpt.fyi]:
OK[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-linux2404-64-opt,Gecko-windows11-64-25h2-opt],SKIP[Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt],TIMEOUT[Gecko-windows11-64-25h2-debug] - /storage-access-api/requestStorageAccess-nested-same-origin-iframe.sub.https.window.html [wpt.fyi]:
OK[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-linux2404-64-opt,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-windows11-32-25h2-debug] - /storage-access-api/requestStorageAccess-sandboxed-iframe-no-storage-access.sub.https.window.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,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],SKIP[Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview] - /storage-access-api/storage-access-beyond-cookies.blobStorage.sub.https.window.html [wpt.fyi]:
OK[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],SKIP[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] - /storage-access-api/storage-access-beyond-cookies.locks.sub.https.window.html [wpt.fyi]:
OK[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-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-linux2404-64-debug] - /storage-access-api/storage-access-permission.sub.https.window.html [wpt.fyi]:
OK[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-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-linux2404-64-debug]
Comment 4•24 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/43da3fefa212
https://hg.mozilla.org/mozilla-central/rev/15148c7f47f5
Description
•