summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/storage-access-api/requestStorageAccess-dedicated-worker.tentative.sub.https.window.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/storage-access-api/requestStorageAccess-dedicated-worker.tentative.sub.https.window.js')
-rw-r--r--testing/web-platform/tests/storage-access-api/requestStorageAccess-dedicated-worker.tentative.sub.https.window.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/web-platform/tests/storage-access-api/requestStorageAccess-dedicated-worker.tentative.sub.https.window.js b/testing/web-platform/tests/storage-access-api/requestStorageAccess-dedicated-worker.tentative.sub.https.window.js
index f2d766575d..6c3d616e26 100644
--- a/testing/web-platform/tests/storage-access-api/requestStorageAccess-dedicated-worker.tentative.sub.https.window.js
+++ b/testing/web-platform/tests/storage-access-api/requestStorageAccess-dedicated-worker.tentative.sub.https.window.js
@@ -38,6 +38,9 @@
await StartDedicatedWorker(frame);
assert_true(cookieStringHasCookie("cookie", "unpartitioned",
+ await MessageWorker(frame, {command: "load"})),
+ "Worker's load was credentialed.");
+ assert_true(cookieStringHasCookie("cookie", "unpartitioned",
await MessageWorker(frame, {command: "fetch", url: altRootEchoCookies})),
"Worker's fetch is credentialed.");
}, "Workers inherit storage access");
@@ -47,9 +50,14 @@
await SetFirstPartyCookieAndUnsetStorageAccessPermission(altRoot);
const frame = await SetUpResponderFrame(t, altRootResponder);
+ assert_false(await FrameHasStorageAccess(frame), "frame lacks storage access before request.");
+ assert_false(await HasUnpartitionedCookie(frame), "frame lacks access to cookies before request.");
await StartDedicatedWorker(frame);
assert_false(cookieStringHasCookie("cookie", "unpartitioned",
+ await MessageWorker(frame, {command: "load"})),
+ "Worker's load was uncredentialed.");
+ assert_false(cookieStringHasCookie("cookie", "unpartitioned",
await MessageWorker(frame, {command: "fetch", url: altRootEchoCookies})),
"Worker's first fetch is uncredentialed.");