diff --git a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-child-cross-origin-delivered.tentative.sub.window.js b/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-child-cross-origin-delivered.tentative.sub.window.js deleted file mode 100644 index 80743145575593..00000000000000 --- a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-child-cross-origin-delivered.tentative.sub.window.js +++ /dev/null @@ -1,18 +0,0 @@ -// META: title=Top-level navigation tests with cross origin & user activated child frames -// META: script=/common/dispatcher/dispatcher.js -// META: script=/common/get-host-info.sub.js -// META: script=/common/utils.js -// META: script=/resources/testdriver.js -// META: script=/resources/testdriver-vendor.js -// META: script=/html/browsers/browsing-the-web/remote-context-helper/resources/remote-context-helper.js -// META: script=./resources/sandbox-top-navigation-helper.sub.js - -'use strict'; - -promise_test(async t => { - const main = await setupTest(); - const iframe_1 = await createNestedIframe(main, - "HTTP_REMOTE_ORIGIN", "", "allow-top-navigation"); - - await attemptTopNavigation(iframe_1, false); -}, "A cross-origin frame with delivered sandbox flags can not navigate top"); diff --git a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-child-delivered.tentative.sub.window.js b/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-child-delivered.tentative.sub.window.js index c0205130120927..c6f990821e7783 100644 --- a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-child-delivered.tentative.sub.window.js +++ b/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-child-delivered.tentative.sub.window.js @@ -12,7 +12,7 @@ promise_test(async t => { const main = await setupTest(); const iframe_1 = await createNestedIframe( - main, 'HTTP_ORIGIN', '', 'allow-top-navigation allow-same-origin'); + main, 'HTTP_ORIGIN', '', 'allow-top-navigation allow-same-origin'); await attemptTopNavigation(iframe_1, true); }, 'A same-origin frame with delivered sandbox flags can navigate top'); diff --git a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-child-frame-both.tentative.sub.window.js b/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-child-frame-both.tentative.sub.window.js deleted file mode 100644 index ff7d2eb5847102..00000000000000 --- a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-child-frame-both.tentative.sub.window.js +++ /dev/null @@ -1,20 +0,0 @@ -// META: title=Top-level navigation tests with child frames -// META: script=/common/dispatcher/dispatcher.js -// META: script=/common/get-host-info.sub.js -// META: script=/common/utils.js -// META: script=/resources/testdriver.js -// META: script=/resources/testdriver-vendor.js -// META: script=/html/browsers/browsing-the-web/remote-context-helper/resources/remote-context-helper.js -// META: script=./resources/sandbox-top-navigation-helper.sub.js - -'use strict'; - -promise_test(async t => { - const main = await setupTest(); - const iframe_1 = await createNestedIframe( - main, 'HTTP_ORIGIN', - 'allow-top-navigation allow-top-navigation-by-user-activation', ''); - - await attemptTopNavigation(iframe_1, true); -}, 'A frame with both top navigation frame sandbox flags uses the less \ - restrictive one'); diff --git a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-child-frame.tentative.sub.window.js b/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-child-frame.tentative.sub.window.js deleted file mode 100644 index 35abc554b6144e..00000000000000 --- a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-child-frame.tentative.sub.window.js +++ /dev/null @@ -1,18 +0,0 @@ -// META: title=Top-level navigation tests with child frames -// META: script=/common/dispatcher/dispatcher.js -// META: script=/common/get-host-info.sub.js -// META: script=/common/utils.js -// META: script=/resources/testdriver.js -// META: script=/resources/testdriver-vendor.js -// META: script=/html/browsers/browsing-the-web/remote-context-helper/resources/remote-context-helper.js -// META: script=./resources/sandbox-top-navigation-helper.sub.js - -'use strict'; - -promise_test(async t => { - const main = await setupTest(); - const iframe_1 = await createNestedIframe( - main, 'HTTP_ORIGIN', 'allow-top-navigation allow-same-origin', ''); - - await attemptTopNavigation(iframe_1, true); -}, 'A same-origin frame with frame sandbox flags can navigate top'); diff --git a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-cross-origin-escalate.tentative.sub.window.js b/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-cross-origin-escalate.tentative.sub.window.js deleted file mode 100644 index c394699d85dc07..00000000000000 --- a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-cross-origin-escalate.tentative.sub.window.js +++ /dev/null @@ -1,20 +0,0 @@ -// META: title=Top-level navigation tests with frames that try to give themselves top-nav permission -// META: script=/common/dispatcher/dispatcher.js -// META: script=/common/get-host-info.sub.js -// META: script=/common/utils.js -// META: script=/resources/testdriver.js -// META: script=/resources/testdriver-vendor.js -// META: script=/html/browsers/browsing-the-web/remote-context-helper/resources/remote-context-helper.js -// META: script=./resources/sandbox-top-navigation-helper.sub.js - -'use strict'; - -promise_test(async t => { - const main = await setupTest(); - const iframe_1 = await createNestedIframe(main, 'HTTP_REMOTE_ORIGIN', '', ''); - const iframe_2 = await createNestedIframe( - iframe_1, 'HTTP_REMOTE_ORIGIN', 'allow-top-navigation', ''); - - await attemptTopNavigation(iframe_2, false); -}, 'A cross origin unsandboxed frame can\'t escalate privileges in a child \ - frame'); diff --git a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-cross-site.tentative.sub.window.js b/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-cross-site.tentative.sub.window.js deleted file mode 100644 index cacc5bd983e159..00000000000000 --- a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-cross-site.tentative.sub.window.js +++ /dev/null @@ -1,22 +0,0 @@ -// META: title=Top-level navigation tests with cross origin & user activated child frames -// META: script=/common/dispatcher/dispatcher.js -// META: script=/common/get-host-info.sub.js -// META: script=/common/utils.js -// META: script=/resources/testdriver.js -// META: script=/resources/testdriver-actions.js -// META: script=/resources/testdriver-vendor.js -// META: script=/html/browsers/browsing-the-web/remote-context-helper/resources/remote-context-helper.js -// META: script=./resources/sandbox-top-navigation-helper.sub.js - -'use strict'; - -promise_test(async t => { - const main = await setupTest(); - - const iframe = await createNestedIframe(main, "HTTP_ORIGIN", "", ""); - await activate(iframe); - - const new_iframe = await navigateFrameTo(iframe, "HTTPS_REMOTE_ORIGIN"); - await attemptTopNavigation(new_iframe, false); -}, "A cross-site unsandboxed iframe navigation consumes user activation and " + - "disallows top-level navigation."); diff --git a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-grandchild-sandboxed-escalate.tentative.sub.window.js b/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-grandchild-sandboxed-escalate.tentative.sub.window.js deleted file mode 100644 index 448925144aa113..00000000000000 --- a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-grandchild-sandboxed-escalate.tentative.sub.window.js +++ /dev/null @@ -1,20 +0,0 @@ -// META: title=Top-level navigation tests with frames that try to give themselves top-nav permission -// META: script=/common/dispatcher/dispatcher.js -// META: script=/common/get-host-info.sub.js -// META: script=/common/utils.js -// META: script=/resources/testdriver.js -// META: script=/resources/testdriver-vendor.js -// META: script=/html/browsers/browsing-the-web/remote-context-helper/resources/remote-context-helper.js -// META: script=./resources/sandbox-top-navigation-helper.sub.js - -'use strict'; - -promise_test(async t => { - const main = await setupTest(); - const iframe_1 = await createNestedIframe(main, 'HTTP_ORIGIN', '', ''); - const iframe_2 = await createNestedIframe( - iframe_1, 'HTTP_ORIGIN', '', 'allow-top-navigation'); - - await attemptTopNavigation(iframe_2, false); -}, 'A sandboxed same-origin grandchild without allow-same-origin can\'t \ - escalate its own top-nav privileges'); diff --git a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-grandchild-unsandboxed.tentative.sub.window.js b/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-grandchild-unsandboxed.tentative.sub.window.js deleted file mode 100644 index 7fe80dfa1b294b..00000000000000 --- a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-grandchild-unsandboxed.tentative.sub.window.js +++ /dev/null @@ -1,18 +0,0 @@ -// META: title=Top-level navigation tests with grandchild frames -// META: script=/common/dispatcher/dispatcher.js -// META: script=/common/get-host-info.sub.js -// META: script=/common/utils.js -// META: script=/resources/testdriver.js -// META: script=/resources/testdriver-vendor.js -// META: script=/html/browsers/browsing-the-web/remote-context-helper/resources/remote-context-helper.js -// META: script=./resources/sandbox-top-navigation-helper.sub.js - -'use strict'; - -promise_test(async t => { - const main = await setupTest(); - const iframe_1 = await createNestedIframe(main, 'HTTP_ORIGIN', '', ''); - const iframe_2 = await createNestedIframe(iframe_1, 'HTTP_ORIGIN', '', ''); - - await attemptTopNavigation(iframe_2, true); -}, 'An unsandboxed same-origin grandchild can navigate top'); diff --git a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-same-site-no-activation.tentative.sub.window.js b/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-same-site-no-activation.tentative.sub.window.js deleted file mode 100644 index 03350e76e24074..00000000000000 --- a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-same-site-no-activation.tentative.sub.window.js +++ /dev/null @@ -1,23 +0,0 @@ -// META: title=Top-level navigation tests with cross origin & user activated child frames -// META: script=/common/dispatcher/dispatcher.js -// META: script=/common/get-host-info.sub.js -// META: script=/common/utils.js -// META: script=/resources/testdriver.js -// META: script=/resources/testdriver-actions.js -// META: script=/resources/testdriver-vendor.js -// META: script=/html/browsers/browsing-the-web/remote-context-helper/resources/remote-context-helper.js -// META: script=./resources/sandbox-top-navigation-helper.sub.js - -'use strict'; - -promise_test( - async t => { - const main = await setupTest(); - - const iframe = await createNestedIframe(main, 'HTTP_ORIGIN', '', ''); - - const new_iframe = await navigateFrameTo(iframe, 'HTTP_REMOTE_ORIGIN'); - await attemptTopNavigation(new_iframe, false); - }, - 'A same-site unsandboxed iframe navigation without sticky user activation ' + - 'does not allow top-level navigation.'); diff --git a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-same-site.tentative.sub.window.js b/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-same-site.tentative.sub.window.js deleted file mode 100644 index 0ee6b8edcc4990..00000000000000 --- a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-same-site.tentative.sub.window.js +++ /dev/null @@ -1,24 +0,0 @@ -// META: title=Top-level navigation tests with cross origin & user activated child frames -// META: script=/common/dispatcher/dispatcher.js -// META: script=/common/get-host-info.sub.js -// META: script=/common/utils.js -// META: script=/resources/testdriver.js -// META: script=/resources/testdriver-actions.js -// META: script=/resources/testdriver-vendor.js -// META: script=/html/browsers/browsing-the-web/remote-context-helper/resources/remote-context-helper.js -// META: script=./resources/sandbox-top-navigation-helper.sub.js - -'use strict'; - -promise_test( - async t => { - const main = await setupTest(); - - const iframe = await createNestedIframe(main, 'HTTP_ORIGIN', '', ''); - await activate(iframe); - - const new_iframe = await navigateFrameTo(iframe, 'HTTP_REMOTE_ORIGIN'); - await attemptTopNavigation(new_iframe, true); - }, - 'A same-site unsandboxed iframe navigation does not consume user ' + - 'activation and allows top-level navigation.'); diff --git a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-user-activation-no-sticky.tentative.sub.window.js b/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-user-activation-no-sticky.tentative.sub.window.js deleted file mode 100644 index c62155ce30d302..00000000000000 --- a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-user-activation-no-sticky.tentative.sub.window.js +++ /dev/null @@ -1,19 +0,0 @@ -// META: title=Top-level navigation tests with cross origin & user activated child frames -// META: script=/common/dispatcher/dispatcher.js -// META: script=/common/get-host-info.sub.js -// META: script=/common/utils.js -// META: script=/resources/testdriver.js -// META: script=/resources/testdriver-actions.js -// META: script=/resources/testdriver-vendor.js -// META: script=/html/browsers/browsing-the-web/remote-context-helper/resources/remote-context-helper.js -// META: script=./resources/sandbox-top-navigation-helper.sub.js - -'use strict'; - -promise_test(async t => { - const main = await setupTest(); - const iframe_1 = await createNestedIframe( - main, 'HTTP_ORIGIN', 'allow-top-navigation-by-user-activation', ''); - - await attemptTopNavigation(iframe_1, false); -}, 'allow-top-navigation-by-user-activation set but no sticky activation'); diff --git a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-user-activation-sticky.tentative.sub.window.js b/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-user-activation-sticky.tentative.sub.window.js deleted file mode 100644 index e62fbdfb220420..00000000000000 --- a/html/semantics/embedded-content/the-iframe-element/sandbox-top-navigation-user-activation-sticky.tentative.sub.window.js +++ /dev/null @@ -1,20 +0,0 @@ -// META: title=Top-level navigation tests with cross origin & user activated child frames -// META: script=/common/dispatcher/dispatcher.js -// META: script=/common/get-host-info.sub.js -// META: script=/common/utils.js -// META: script=/resources/testdriver.js -// META: script=/resources/testdriver-actions.js -// META: script=/resources/testdriver-vendor.js -// META: script=/html/browsers/browsing-the-web/remote-context-helper/resources/remote-context-helper.js -// META: script=./resources/sandbox-top-navigation-helper.sub.js - -'use strict'; - -promise_test(async t => { - const main = await setupTest(); - const iframe_1 = await createNestedIframe(main, - "HTTP_ORIGIN", "allow-top-navigation-by-user-activation", ""); - await activate(iframe_1); - - await attemptTopNavigation(iframe_1, true); -}, "Allow top with user activation + user activation");