sandbox-top-navigation-child-cross-origin-frame.tentative.sub.window.js (777B)
1 // META: title=Top-level navigation tests with cross origin & user activated child frames 2 // META: script=/common/dispatcher/dispatcher.js 3 // META: script=/common/get-host-info.sub.js 4 // META: script=/common/utils.js 5 // META: script=/resources/testdriver.js 6 // META: script=/resources/testdriver-vendor.js 7 // META: script=/html/browsers/browsing-the-web/remote-context-helper/resources/remote-context-helper.js 8 // META: script=./resources/sandbox-top-navigation-helper.sub.js 9 10 'use strict'; 11 12 promise_test(async t => { 13 const main = await setupTest(); 14 const iframe_1 = await createNestedIframe( 15 main, 'HTTP_REMOTE_ORIGIN', 'allow-top-navigation', ''); 16 17 await attemptTopNavigation(iframe_1, true); 18 }, 'A cross-origin frame with frame sandbox flags can navigate top');