tor-browser

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

1368327.html (691B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <head>
      4    <meta charset="utf-8">
      5    <title>Test window.location</title>
      6    <script type="application/javascript">
      7    function test() {
      8      content = document.querySelector("#content");
      9      testFrame = document.querySelector("#testframe");
     10      frameWindow = testFrame.contentWindow;
     11      testframe.remove();
     12 
     13      // Shouldn't crash at this line.
     14      content.textContent = "location=" + frameWindow.location;
     15 
     16      document.documentElement.className = "";
     17    }
     18    </script>
     19  </head>
     20  <body>
     21    <p id="content"></p>
     22    <iframe id="testframe" src="1368327-iframe.html" onload="setTimeout(test, 0);"></iframe>
     23  </body>
     24 </html>