mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Bug 1820021 [wpt PR 38794] - Rename cross-site test case; use wildcard origin patterns, a=testonly
Automatic update from web-platform-tests Rename cross-site test case; use wildcard origin patterns The "cross-origin" name was misleading, since the iframes in this test case are also cross-site from the top-level doucment. Change-Id: Iccdd48b44ba6793404d1245ec57748d0267ae356 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4303803 Commit-Queue: Shuran Huang <shuuran@chromium.org> Commit-Queue: Chris Fredrickson <cfredric@chromium.org> Auto-Submit: Chris Fredrickson <cfredric@chromium.org> Reviewed-by: Shuran Huang <shuuran@chromium.org> Cr-Commit-Position: refs/heads/main@{#1112450} -- wpt-commits: e2f4f5fc7aa8c43bd92a12377388c4bab7aa686f wpt-pr: 38794
This commit is contained in:
parent
85877b22a3
commit
3ed975e2ca
@ -5,11 +5,11 @@
|
||||
'use strict';
|
||||
|
||||
(async function() {
|
||||
// This is on the www subdomain, so it's cross-origin from the current document.
|
||||
// This is on the alt domain, so it's cross-site from the current document.
|
||||
const wwwAlt = "https://{{hosts[alt][www]}}:{{ports[https][0]}}";
|
||||
|
||||
promise_test(async (t) => {
|
||||
await MaybeSetStorageAccess(wwwAlt + "/", "*", "blocked");
|
||||
await MaybeSetStorageAccess("*", "*", "blocked");
|
||||
const responder_html = `${wwwAlt}/storage-access-api/resources/script-with-cookie-header.py?script=embedded_responder.js`;
|
||||
const [frame1, frame2] = await Promise.all([
|
||||
CreateFrame(responder_html),
|
||||
@ -19,7 +19,7 @@
|
||||
t.add_cleanup(async () => {
|
||||
await test_driver.delete_all_cookies();
|
||||
await SetPermissionInFrame(frame1, [{ name: 'storage-access' }, 'prompt']);
|
||||
await MaybeSetStorageAccess(wwwAlt + "/", "*", "allowed");
|
||||
await MaybeSetStorageAccess("*", "*", "allowed");
|
||||
});
|
||||
|
||||
await SetPermissionInFrame(frame1, [{ name: 'storage-access' }, 'granted']);
|
@ -16,10 +16,10 @@
|
||||
const wwwAlt = "https://{{hosts[alt][www]}}:{{ports[https][0]}}";
|
||||
|
||||
promise_test(async t => {
|
||||
await MaybeSetStorageAccess(wwwAlt + "/", "*", "blocked");
|
||||
await MaybeSetStorageAccess("*", "*", "blocked");
|
||||
t.add_cleanup(async () => {
|
||||
await test_driver.delete_all_cookies();
|
||||
await MaybeSetStorageAccess(wwwAlt + "/", "*", "allowed");
|
||||
await MaybeSetStorageAccess("*", "*", "allowed");
|
||||
});
|
||||
|
||||
const responder_html = `${wwwAlt}/storage-access-api/resources/script-with-cookie-header.py?script=embedded_responder.js`;
|
||||
|
Loading…
Reference in New Issue
Block a user