From 69d21141c2b75c383554b39a9c8d690aaf12e5f4 Mon Sep 17 00:00:00 2001
From: Camillia Smith Barnes
Date: Fri, 26 Jul 2024 15:46:57 +0000
Subject: [PATCH] Bug 1909971 [wpt PR 47296] - Shared Storage: Align
createWorklet's default data origin w/addModule's, a=testonly
Automatic update from web-platform-tests
Shared Storage: Align createWorklet's default data origin w/addModule's
We align the default data origin for createWorklet with that of
addModule to be the invoking context's origin. We also hook up the
dataOrigin option in createWorklet's options dictionary, so that
the script origin can be manually specified to be used as the data
origin instead.
See https://github.com/WICG/shared-storage/pull/158,
https://github.com/WICG/shared-storage/pull/161, and
https://groups.google.com/a/chromium.org/g/blink-dev/c/YZ4XGewKVuk.
Bug: 353738488
Change-Id: I3578e48f14c9fb1005211b94889ce01ef209162c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5716903
Reviewed-by: Yao Xiao
Commit-Queue: Cammie Smith Barnes
Cr-Commit-Position: refs/heads/main@{#1333189}
--
wpt-commits: 71b107815a391a469b081cbb9242e1723ede50fb
wpt-pr: 47296
---
...-permissions-policy-default.https.sub.html | 4 +-
...ion-permissions-policy-none.https.sub.html | 4 +-
...ion-permissions-policy-self.https.sub.html | 4 +-
.../private-aggregation/resources/util.js | 6 +-
...let-with-data-url.tentative.https.sub.html | 21 +++++-
...edentials-include.tentative.https.sub.html | 47 ++++++++++---
...-credentials-omit.tentative.https.sub.html | 46 +++++++++++--
...tials-same-origin.tentative.https.sub.html | 46 +++++++++++--
...n-worklet-allowed.tentative.https.sub.html | 31 ---------
...allow-credentials.tentative.https.sub.html | 41 ++++++++++--
...trol-allow-origin.tentative.https.sub.html | 40 +++++++++--
...n-worklet-allowed.tentative.https.sub.html | 30 ---------
...n-worklet-allowed.tentative.https.sub.html | 66 +++++++++++++++++++
...n-worklet-allowed.tentative.https.sub.html | 60 +++++++++++++++++
...erify-data-origin.tentative.https.sub.html | 32 +++++++--
...et-in-sandboxed-frame-inner.https.sub.html | 4 +-
.../shared-storage/resources/util.sub.js | 18 +++--
.../verify-shared-storage.https.html | 3 +
...ns-policy-default.tentative.https.sub.html | 2 +-
...sions-policy-none.tentative.https.sub.html | 2 +-
...sions-policy-self.tentative.https.sub.html | 2 +-
...e-in-sandboxed-iframe.tentative.https.html | 16 ++++-
...ns-policy-default.tentative.https.sub.html | 2 +-
...sions-policy-none.tentative.https.sub.html | 2 +-
...sions-policy-self.tentative.https.sub.html | 2 +-
25 files changed, 408 insertions(+), 123 deletions(-)
delete mode 100644 testing/web-platform/tests/shared-storage/cross-origin-create-worklet-failure-false-shared-storage-cross-origin-worklet-allowed.tentative.https.sub.html
delete mode 100644 testing/web-platform/tests/shared-storage/cross-origin-create-worklet-failure-missing-shared-storage-cross-origin-worklet-allowed.tentative.https.sub.html
create mode 100644 testing/web-platform/tests/shared-storage/cross-origin-create-worklet-false-shared-storage-cross-origin-worklet-allowed.tentative.https.sub.html
create mode 100644 testing/web-platform/tests/shared-storage/cross-origin-create-worklet-missing-shared-storage-cross-origin-worklet-allowed.tentative.https.sub.html
diff --git a/testing/web-platform/tests/private-aggregation/private-aggregation-permissions-policy-default.https.sub.html b/testing/web-platform/tests/private-aggregation/private-aggregation-permissions-policy-default.https.sub.html
index 81e0c241184b6..3deb607705152 100644
--- a/testing/web-platform/tests/private-aggregation/private-aggregation-permissions-policy-default.https.sub.html
+++ b/testing/web-platform/tests/private-aggregation/private-aggregation-permissions-policy-default.https.sub.html
@@ -34,8 +34,8 @@
await CreateWorkletAndVerifyContributeToHistogram(
/*shared_storage_origin=*/cross_origin, paa_data);
}, 'In a page with default "private-aggregation" permissions policy, ' +
- 'createWorklet() with cross-origin script, and then execute ' +
- 'contributeToHistogram() inside the worklet');
+ 'createWorklet() with cross-origin script and script data origin, and then '
+ + 'execute contributeToHistogram() inside the worklet');
-
-
-
-
+
+
+
+