tor-browser

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

file_bug1375833.html (703B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3  <head>
      4    <meta charset="utf-8">
      5    <title>Test for bug 1375833</title>
      6  </head>
      7  <body onload="test();">
      8    <iframe id="testFrame" src="file_bug1375833-frame1.html"></iframe>
      9    <script type="application/javascript">
     10    function test() {
     11      let iframe = document.querySelector("#testFrame");
     12      setTimeout(function() { iframe.src = "file_bug1375833-frame1.html"; }, 0);
     13      iframe.onload = function() {
     14        setTimeout(function() { iframe.src = "file_bug1375833-frame2.html"; }, 0);
     15        iframe.onload = function() {
     16          opener.postMessage(iframe.contentWindow.location.href, "*");
     17        };
     18      };
     19    }
     20    </script>
     21  </body>
     22 </html>