tor-browser

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

file_nested_frames.html (863B)


      1 <html>
      2  <head>
      3    <script>
      4      function nestedIframeLoaded() {
      5        var tf = document.getElementById("testframe");
      6        var innerf = tf.contentDocument.getElementsByTagName("iframe")[0];
      7        if (!innerf.contentDocument.documentURI.includes("frame0")) {
      8          innerf.contentWindow.location.href = "http://mochi.test:8888/tests/docshell/test/navigation/frame0.html";
      9          return;
     10        }
     11        innerf.onload = null;
     12        innerf.src = "about:blank";
     13        var d = innerf.contentDocument;
     14        d.open();
     15        d.write("test");
     16        d.close();
     17        opener.is(window.history.length, 1, "Unexpected history length");
     18        opener.finishTest();
     19      }
     20    </script>
     21  </head>
     22  <body>
     23  <iframe id="testframe" src="file_nested_frames_innerframe.html" onload="frameLoaded()"></iframe>
     24  <script>
     25  </script>
     26  </body>
     27 </html>