tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 34bd4a2c059f261561dd699f386c47c7c29fcf52
parent 652e24396886f10b48028bf8bb12a25f76950a0e
Author: Chris Fredrickson <cfredric@chromium.org>
Date:   Thu, 11 Dec 2025 09:27:44 +0000

Bug 2004991 [wpt PR 56598] - [SAA] Remove "unpartitioned" beyond-cookies-SAA WPT, a=testonly

Automatic update from web-platform-tests
[SAA] Remove "unpartitioned" beyond-cookies-SAA WPT

I think this test is redundant with the coverage in
webmessaging/broadcastchannel and
storage-access-api/storage-access-beyond-cookies.BroadcastChannel.sub.https.window.js.

Change-Id: Ifc4b4bb204fd089609e1615d1be7838e308703e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7239750
Reviewed-by: David Baron <dbaron@chromium.org>
Reviewed-by: Ari Chivukula <arichiv@chromium.org>
Commit-Queue: Chris Fredrickson <cfredric@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1556124}

--

wpt-commits: b31f1938cc5daf9b02054bbc434b53282eba021b
wpt-pr: 56598

Diffstat:
Mtesting/web-platform/tests/storage-access-api/resources/storage-access-beyond-cookies-iframe-iframe.html | 11-----------
Mtesting/web-platform/tests/storage-access-api/resources/storage-access-beyond-cookies-iframe.sub.html | 6------
Dtesting/web-platform/tests/storage-access-api/storage-access-beyond-cookies.unpartitioned.sub.https.window.js | 40----------------------------------------
3 files changed, 0 insertions(+), 57 deletions(-)

diff --git a/testing/web-platform/tests/storage-access-api/resources/storage-access-beyond-cookies-iframe-iframe.html b/testing/web-platform/tests/storage-access-api/resources/storage-access-beyond-cookies-iframe-iframe.html @@ -392,17 +392,6 @@ }); break; } - case "unpartitioned": { - await test_driver.set_permission({ name: 'storage-access' }, 'denied'); - const handle = await document.requestStorageAccess({BroadcastChannel: true}); - const handle_channel = handle.BroadcastChannel(id); - handle_channel.postMessage("Same-origin handle access"); - handle_channel.close(); - const local_channel = new BroadcastChannel(id); - local_channel.postMessage("Same-origin local access"); - local_channel.close(); - break; - } default: { message = "Unexpected type " + type; break; diff --git a/testing/web-platform/tests/storage-access-api/resources/storage-access-beyond-cookies-iframe.sub.html b/testing/web-platform/tests/storage-access-api/resources/storage-access-beyond-cookies-iframe.sub.html @@ -131,12 +131,6 @@ window.addEventListener("message", async (e) => { case "ThirdPartyBlobURL": { break; } - case "unpartitioned": { - const channel = handle.BroadcastChannel(id); - channel.postMessage("Cross-origin handle access"); - channel.close(); - break; - } case "BlobURLSharedWorker": { break; } diff --git a/testing/web-platform/tests/storage-access-api/storage-access-beyond-cookies.unpartitioned.sub.https.window.js b/testing/web-platform/tests/storage-access-api/storage-access-beyond-cookies.unpartitioned.sub.https.window.js @@ -1,40 +0,0 @@ -// META: script=/resources/testdriver.js -// META: script=/resources/testdriver-vendor.js - -'use strict'; - -// Here's the set-up for this test: -// Step 1 (top-frame) Set up listener for "HasAccess" message. -// Step 2 (top-frame) Open channel first-party broadcast. -// Step 3 (top-frame) Embed an iframe that's cross-site with top-frame. -// Step 4 (sub-frame) Try to use storage access API and send first-party broadcast. -// Step 5 (sub-frame) Embed an iframe that's same-origin with top-frame. -// Step 6 (sub-sub-frame) Try to use storage access API and send first-party broadcast when unpartitioned. -// Step 7 (sub-sub-frame) Send "HasAccess for unpartitioned" message to top-frame. -// Step 8 (top-frame) Receive "HasAccess for unpartitioned" message and cleanup. - -async_test(t => { - let broadcasts = []; - // Step 1 - window.addEventListener("message", t.step_func(e => { - if (e.data.type != "result") { - return; - } - // Step 8 - assert_equals(e.data.message, "HasAccess for unpartitioned", "Storage Access API should be accessible and return first-party data"); - assert_array_equals(broadcasts, ["Same-origin handle access"], "Should have only seen same-origin handle broadcasts"); - t.done(); - })); - - // Step 2 - const id = Date.now(); - const channel = new BroadcastChannel(id); - channel.onmessage = (event) => { - broadcasts.push(event.data); - }; - - // Step 3 - let iframe = document.createElement("iframe"); - iframe.src = "https://{{hosts[alt][]}}:{{ports[https][0]}}/storage-access-api/resources/storage-access-beyond-cookies-iframe.sub.html?type=unpartitioned&id="+id; - document.body.appendChild(iframe); -}, "Verify StorageAccessAPIBeyondCookies when unpartitioned");