tor-browser

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

test_mediarecorder_reload_crash.html (1007B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Test that reloading media recorder object</title>
      5  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
      7  <script type="text/javascript" src="manifest.js"></script>
      8 </head>
      9 <body>
     10 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=894348">Mozill
     11 a Bug 894348</a>
     12 <pre id="test">
     13 <script class="testbody" type="text/javascript">
     14  for (let i = 0; i< 5; i++) {
     15    /* eslint-disable no-undef */
     16    try { o0 = document.createElement('audio') } catch(e) { }
     17    try { o0.src = "sound.ogg" } catch(e) { }
     18    try { (document.body || document.documentElement).appendChild(o0) } catch(e) { }
     19    try { o1 = o0.mozCaptureStreamUntilEnded(); } catch(e) { }
     20    try { o2 = new MediaRecorder(o1) } catch(e) { }
     21    try { o2.start(0) } catch(e) { }
     22    /* eslint-enable no-undef */
     23    SpecialPowers.gc();
     24  }
     25  ok(true, "pass the crash test");
     26 </script>
     27 </pre>
     28 </body>
     29 </html>