Update web-platform-tests to revision b'704eebbe6af5b43643971e96e33a0c979fba2904'

This commit is contained in:
WPT Sync Bot 2023-01-25 01:33:16 +00:00
parent f8e014d0ba
commit a6bc3e1a73
194 changed files with 13122 additions and 1992 deletions

View file

@ -132,3 +132,14 @@ function SetPermissionInFrame(frame, args = []) {
function FrameInitiatedReload(frame) {
return PostMessageAndAwait({ command: "reload" }, frame.contentWindow, ReloadPromise(frame));
}
// Tries to set storage access policy, ignoring any errors.
async function MaybeSetStorageAccess(origin, embedding_origin, value) {
try {
await test_driver.set_storage_access(origin, embedding_origin, value);
} catch (e) {
// Ignore, can be unimplemented if the platform blocks cross-site cookies
// by default. If this failed without default blocking we'll notice it later
// in the test.
}
}