tor-browser

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

test_bug1232829.html (983B)


      1 <!DOCTYPE html>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1232829
      5 -->
      6 <head>
      7 <meta charset="utf-8">
      8 <title>Test for Bug 1232829</title>
      9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11 <script>
     12 
     13 /** Test for Bug 1232829 */
     14 
     15 // This should be a crashtest but it relies on using a pop-up window which
     16 // isn't supported in crashtests.
     17 function boom() {
     18  var popup = window.open("data:text/html,2");
     19  setTimeout(function() {
     20    var frameDoc = document.querySelector("iframe").contentDocument;
     21    frameDoc.write("3");
     22    requestAnimationFrame(function() {
     23      popup.close();
     24      ok(true, "Didn't crash");
     25      SimpleTest.finish();
     26    });
     27  }, 0);
     28 }
     29 
     30 SimpleTest.waitForExplicitFinish();
     31 </script>
     32 </head>
     33 <body onload="boom()">
     34  <iframe srcdoc="<style>@keyframes a { to { opacity: 0.5 } }</style>
     35                  <div style='animation: a 1ms'></div>"></iframe>
     36 </body>
     37 </html>