tor-browser

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

file_top_navigation_by_location_exotic.html (661B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>Test window for top navigation by location tests</title>
      6 <script>
      7  function onBlock() {
      8    opener.postMessage({ name: window.name, blocked: true }, "*");
      9  }
     10 
     11  function onNav() {
     12    opener.postMessage({ name: window.name, blocked: false }, "*");
     13  }
     14 
     15  function setOwnHref() {
     16    // eslint-disable-next-line no-self-assign
     17    location.href = location.href;
     18  }
     19 
     20  window.onload = onNav;
     21 </script>
     22 </head>
     23 <body>
     24  <iframe name="if1" sandbox="allow-scripts allow-same-origin"></iframe>
     25  <iframe name="if2" sandbox="allow-scripts allow-same-origin allow-top-navigation"></iframe>
     26 </body>
     27 </html>