tor-browser

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

test_bug348497.html (998B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=348497
      5 -->
      6 <head>
      7  <title>Test for Bug 348497</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>
     12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=348497">Mozilla Bug 348497</a>
     13 <p id="display"></p>
     14 <div id="content">
     15  This page should not crash Mozilla<br>
     16  <iframe id="testIframe"></iframe>
     17 </div>
     18 <pre id="test">
     19 <script class="testbody" type="text/javascript">
     20 
     21 /** Test for Bug 348497 */
     22 function doe() {
     23    document.getElementById("testIframe").style.display = "block";
     24    document.getElementById("testIframe").contentDocument.designMode = "on";
     25 }
     26 
     27 SimpleTest.waitForExplicitFinish();
     28 addLoadEvent(doe);
     29 addLoadEvent(function() { ok(true, "enabling designmode on an iframe onload does not crash Mozilla"); });
     30 addLoadEvent(SimpleTest.finish);
     31 
     32 </script>
     33 </pre>
     34 </body>
     35 </html>