tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

sandbox-top-navigation-child-delivered-both.tentative.sub.window.js (834B)


      1 // META: title=Top-level navigation tests with 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_ORIGIN', '',
     16      'allow-top-navigation allow-top-navigation-by-user-activation allow-same-origin');
     17 
     18  await attemptTopNavigation(iframe_1, true);
     19 }, 'A frame with both top navigation delivered sandbox flags uses the less \
     20    restrictive one');