Bug 1879312 [wpt PR 44471] - [SAA] Implementing SharedWorker support (Part 4: Add...
commit3218c6f5bce1a0509ab658ec841fd75ab13763f9
authorAri Chivukula <arichiv@chromium.org>
Thu, 15 Feb 2024 16:44:57 +0000 (15 16:44 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 19 Feb 2024 11:13:53 +0000 (19 11:13 +0000)
treeb2a38ee779eda956faef379b1cfd7389aa9c2eca
parent74213765bc04da0ff4c94a159fe7a1622ca8831a
Bug 1879312 [wpt PR 44471] - [SAA] Implementing SharedWorker support (Part 4: Add SharedWorker support to SAA handle), a=testonly

Automatic update from web-platform-tests
[SAA] Implementing SharedWorker support (Part 4: Add SharedWorker support to SAA handle)

The Storage Access API provides access to unpartitioned cookies in
third-party contexts. This CL is part of a series to extend that access
to SharedWorkers.

This CL implements the final component, SharedWorker access via the SAA
handle itself. Prior CLs set up the proper cookie filtering we test here
to ensure no third-party context can access SameSite=Lax/Strict cookies
(even if they can access unpartitioned SameSite=None cookies).

Design Doc:
https://docs.google.com/document/d/19qCGb4qwOcGiNrQM3ptWvRmB4JtpaTFgFVlWLXNOQ6c/edit

Explainer:
https://privacycg.github.io/saa-non-cookie-storage/shared-workers.html

Part 1: Expose same-site cookie IPC
Part 2: Expose same-site cookie IDL
Part 3: Implement same-site cookie filtering
Part 4: Add SharedWorker support to SAA handle

Bug: 1484966
Change-Id: Ic23366a84176b6eb1c3ec5724fad07f2bffa9216
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5277592
Reviewed-by: Dominic Farolino <dom@chromium.org>
Commit-Queue: Dominic Farolino <dom@chromium.org>
Auto-Submit: Ari Chivukula <arichiv@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1260592}

--

wpt-commits: 92cff38392fc67cf4dbb45e2d6853cd25223c610
wpt-pr: 44471
testing/web-platform/tests/storage-access-api/resources/get_cookies.py [new file with mode: 0644]
testing/web-platform/tests/storage-access-api/resources/set_cookies.py [new file with mode: 0644]
testing/web-platform/tests/storage-access-api/resources/shared-worker-cookies.py [new file with mode: 0644]
testing/web-platform/tests/storage-access-api/resources/shared-worker-relay.js [new file with mode: 0644]
testing/web-platform/tests/storage-access-api/resources/storage-access-beyond-cookies-iframe-iframe.html
testing/web-platform/tests/storage-access-api/resources/storage-access-beyond-cookies-iframe.sub.html
testing/web-platform/tests/storage-access-api/storage-access-beyond-cookies.SharedWorker.tentative.sub.https.window.js [new file with mode: 0644]