tor-browser

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

test_sessionhistory_document_write.html (812B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=
      5 -->
      6 <head>
      7  <title>Test for Session history + document.write</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     10 </head>
     11 <body onload="runTest()">
     12 <p id="display"></p>
     13 <div id="content" style="display: none">
     14 
     15 </div>
     16 <pre id="test">
     17  <script type="application/javascript">
     18    SimpleTest.waitForExplicitFinish();
     19 
     20    var testWindow;
     21    function runTest() {
     22      testWindow = window.open("file_document_write_1.html", "", "width=360,height=480");
     23      testWindow.onunload = function() { }; // to prevent bfcache
     24    }
     25 
     26    function finishTest() {
     27      testWindow.close();
     28      SimpleTest.finish();
     29    }
     30 
     31  </script>
     32 </pre>
     33 </body>
     34 </html>