tor-browser

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

test_798802-1.html (825B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=798802
      5 -->
      6 <head>
      7  <title>Test for webgl crashing</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 
     13 <body>
     14  <script class="testbody" type="application/javascript">
     15  SimpleTest.waitForExplicitFinish();
     16  ok(true, "expecting an exception, not a crash");
     17 
     18    var iframe = document.getElementById('iframe1');
     19    try {
     20        iframe.src = 'file_798802-1.html';
     21        ok(false, 'loaded the iframe and we did not see a crash, perfect!');
     22    } catch (e) {
     23        ok(true, "caught exception in loading the iframe");
     24    }
     25    SimpleTest.finish();
     26 
     27  </script>
     28  <iframe id="iframe1" src="" width="600" height="600"></iframe>
     29 </body>
     30 </html>