mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision b'704eebbe6af5b43643971e96e33a0c979fba2904'
This commit is contained in:
parent
f8e014d0ba
commit
a6bc3e1a73
194 changed files with 13122 additions and 1992 deletions
|
@ -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.
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue