Update web-platform-tests to revision b'ceb972b009e1b43c589dce3f36b050121493d2e0'

This commit is contained in:
WPT Sync Bot 2023-03-19 01:39:16 +00:00
parent 88ff668147
commit 3c4c34479c
196 changed files with 5979 additions and 848 deletions

View file

@ -11,7 +11,9 @@ test(() => {
promise_test(async () => {
const hasAccess = await document.hasStorageAccess();
if (topLevelDocument || testPrefix.includes('same-origin')) {
assert_true(hasAccess, "Access should be granted in top-level frame or same-origin iframe by default.");
assert_true(hasAccess, "Access should be granted in top-level frame or iframe that is in first-party context by default.");
} else if (testPrefix == 'ABA') {
assert_false(hasAccess, "Access should not be granted in secure same-origin iframe that is in a third-party context by default.");
} else {
assert_false(hasAccess, "Access should not be granted in secure cross-origin iframes.");
}
@ -37,14 +39,14 @@ if (topLevelDocument) {
// Create a test with a single-child same-origin iframe.
RunTestsInIFrame("resources/hasStorageAccess-iframe.https.html?testCase=same-origin-frame");
// Create a test with a single-child cross-origin iframe.
RunTestsInIFrame("https://{{domains[www]}}:{{ports[https][0]}}/storage-access-api/resources/hasStorageAccess-iframe.https.html?testCase=cross-origin-frame");
// Create a test with a single-child cross-site iframe.
RunTestsInIFrame("https://{{hosts[alt][]}}:{{ports[https][0]}}/storage-access-api/resources/hasStorageAccess-iframe.https.html?testCase=cross-site-frame");
// Validate the nested-iframe scenario where the same-origin frame containing
// the tests is not the first child.
RunTestsInNestedIFrame("resources/hasStorageAccess-iframe.https.html?testCase=nested-same-origin-frame");
// Validate the nested-iframe scenario where the cross-origin frame containing
// Validate the nested-iframe scenario where the cross-site frame containing
// the tests is not the first child.
RunTestsInNestedIFrame("https://{{domains[www]}}:{{ports[https][0]}}/storage-access-api/resources/hasStorageAccess-iframe.https.html?testCase=nested-cross-origin-frame");
RunTestsInNestedIFrame("https://{{hosts[alt][]}}:{{ports[https][0]}}/storage-access-api/resources/hasStorageAccess-iframe.https.html?testCase=nested-cross-site-frame");
}