[wpt-sync] Sync PR 63437 - [SAH] Remove stale expectation and harden storage-access-headers WPT
Categories
(Core :: Privacy: Anti-Tracking, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63437 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63437
Details from upstream follow.
Mike Taylor <miketaylr@chromium.org> wrote:
[SAH] Remove stale expectation and harden storage-access-headers WPT
storage-access-headers.tentative.https.sub.window.html has been marked
[ Failure Timeout ] since the storage-access-api WPTs started running
against Chrome (via ChromeDriver) instead of content_shell, because the
Storage Access API is implemented in the //chrome layer. The causes of
those failures have since been fixed (ChromeDriver's SetPermission frame
origin, the test assuming cross-site cookies are blocked by default, and
SetFirstPartyCookie's{ once: true }listener being detached by stray
messages), and the test now passes reliably, so remove the expectation.Also clean up the test itself:
Run areCrossSiteCookiesAllowedByDefault() inside promise_setup()
instead of an unawaited async IIFE. Previously the first three
promise_tests started running while the probe frame was still being
loaded and messaged, so the probe ran concurrently with subtests that
create cross-site frames and set storage-access permissions for the
same origin.Remove the responder iframes created by the probe and by five
subtests once they are no longer needed. These frames load
testharness.js and post a{type: "complete"}message to every
ancestor when their 10s harness timeout fires, and keeping them
around leaves cross-site frames alive for the remainder of the test.TAG=agy
CONV=0d875fba-fe1a-401b-9481-9a9d918e0ecaBug: 366530634
Change-Id: I058f027f2890290c5fbd4539310b966010f49523
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8520603
Auto-Submit: Mike Taylor \<miketaylr@chromium.org>
Commit-Queue: Mike Taylor \<miketaylr@chromium.org>
Reviewed-by: Chris Fredrickson \<cfredric@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1714977}
| 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=102835
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 40 tests and 1 subtests
Status Summary
Firefox
OK : 1[GitHub] 35[Gecko-linux2404-64-debug] 36[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug] 37[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-opt] 38[Gecko-windows11-32-25h2-opt] 39[Gecko-linux2404-64-opt]
PASS : 14[GitHub] 121[Gecko-windows11-32-25h2-debug] 124[Gecko-windows11-32-25h2-opt] 126[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 128[Gecko-windows11-64-25h2-opt] 129[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug]
FAIL : 3[GitHub] 17[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] 18[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: 1[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-opt] 2[Gecko-linux2404-64-debug, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 3[Gecko-android-em-14-x86_64-debug-geckoview] 4[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 1
PASS : 4
Safari
OK : 1
PASS : 2
FAIL : 15
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /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/hasStorageAccess-insecure.sub.window.html [wpt.fyi]:
OK[Gecko-windows11-32-25h2-opt],TIMEOUT[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] - /storage-access-api/hasStorageAccess.sub.https.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-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-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],SKIP[Gecko-linux2404-64-debug],TIMEOUT[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,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-64-25h2-debug],TIMEOUT[Gecko-windows11-32-25h2-opt,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-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-32-25h2-opt],TIMEOUT[Gecko-windows11-64-25h2-debug,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/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(Safari:FAIL) - Sec-Fetch-Storage-Access is not 'active' after cross-origin same-site redirection.:
FAIL(Safari:FAIL) - Sec-Fetch-Storage-Access loses value on a cross-site redirection.:
FAIL(Safari: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-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-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],SKIP[Gecko-linux2404-64-debug],TIMEOUT[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,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/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]
https://hg.mozilla.org/mozilla-central/rev/3360647fba4e
https://hg.mozilla.org/mozilla-central/rev/db08eb0b074c
Description
•