tor-browser

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

file_bug534178.html (875B)


      1 <html>
      2  <head>
      3    <script>
      4    
      5      function testDone() {
      6        document.body.firstChild.remove();
      7        var isOK = false;
      8        try {
      9          isOK = history.previous != location;
     10        } catch (ex) {
     11          // history.previous should throw if this is the first page in shistory.
     12          isOK = true;
     13        }
     14        document.body.textContent = isOK ? "PASSED" : "FAILED";
     15        opener.ok(isOK, "Duplicate session history entries should have been removed!");
     16        opener.finishTest();
     17      }
     18      function ifrload() {
     19        setTimeout(testDone, 0);
     20      }
     21      function test() {
     22        var ifr = document.getElementsByTagName("iframe")[0];
     23        ifr.onload = ifrload;
     24        ifr.src = "data:text/html,doc2";
     25      }
     26    </script>
     27  </head>
     28  <body onload="setTimeout(test, 0)"><iframe src="data:text/html,doc1"></iframe>
     29  </body>
     30 </html>