tor-browser

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

test_bug384981.html (968B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=384981
      5 -->
      6 <head>
      7  <title>Test for Bug 384981</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>        
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     10  <!-- Make sure we wait for the stylesheet load -->
     11  <script>document.documentElement.offsetWidth</script>
     12 </head>
     13 <body>
     14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=384981">Mozilla Bug 384981</a>
     15 <p id="display">
     16  <iframe src="javascript:'content'"></iframe>
     17 </p>
     18 <div id="content" style="display: none">
     19  
     20 </div>
     21 <pre id="test">
     22 <script class="testbody" type="text/javascript">
     23 
     24 /** Test for Bug 384981 */
     25 SimpleTest.waitForExplicitFinish()
     26 addLoadEvent(function() {
     27  is(window.frames[0].document.documentElement.textContent, "content",
     28     "Onload should not fire before subframe loads");
     29 });
     30 addLoadEvent(SimpleTest.finish);
     31 
     32 </script>
     33 </pre>
     34 </body>
     35 </html>