tor-browser

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

unfenced-top-navigation-default.https.html (1263B)


      1 <!DOCTYPE html>
      2 <title>Test '_unfencedTop' navigation from a default-mode fenced frame</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="/common/utils.js"></script>
      6 <script src="/common/dispatcher/dispatcher.js"></script>
      7 <script src="resources/utils.js"></script>
      8 <script src="/resources/testdriver.js"></script>
      9 <script src="/resources/testdriver-actions.js"></script>
     10 <script src="/resources/testdriver-vendor.js"></script>
     11 <script src="/common/get-host-info.sub.js"></script>
     12 
     13 <body>
     14 <script>
     15 
     16 // This is not our actual test file; instead, this file performs an
     17 // unfenced top navigation to resources/unfenced-top-target.html, which
     18 // contains the actual promise_test. The test should automatically pass if the
     19 // navigation succeeds. See ./automatic-beacon-unfenced-top.https.html for
     20 // another example of this pattern.
     21 async function init() {
     22  let fencedframe = await attachFencedFrameContext();
     23 
     24  await fencedframe.execute(() => {
     25    window.onclick = () => {
     26      let opened_url = new URL('unfenced-top-target.html', location.href);
     27      window.open(opened_url, '_unfencedTop');
     28    }
     29  });
     30 
     31  await multiClick(10, 10, fencedframe.element);
     32 };
     33 
     34 init();
     35 
     36 </script>
     37 </body>