diff options
Diffstat (limited to 'testing/web-platform/tests/storage-access-api/helpers.js')
-rw-r--r-- | testing/web-platform/tests/storage-access-api/helpers.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/web-platform/tests/storage-access-api/helpers.js b/testing/web-platform/tests/storage-access-api/helpers.js index 0fd5d814db..416c4a401e 100644 --- a/testing/web-platform/tests/storage-access-api/helpers.js +++ b/testing/web-platform/tests/storage-access-api/helpers.js @@ -287,6 +287,13 @@ async function MaybeSetStorageAccess(origin, embedding_origin, value) { } } + +// Navigate the inner iframe using the given frame. +function NavigateChild(frame, url) { + return PostMessageAndAwaitReply( + { command: "navigate_child", url }, frame.contentWindow); +} + // Starts a dedicated worker in the given frame. function StartDedicatedWorker(frame) { return PostMessageAndAwaitReply( |