tor-browser

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

1368490.html (823B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <head>
      4  <title> Bug 1368490 : Crash if media recorder source stream reduces number of channels. </title>
      5 </head>
      6 <meta charset="utf-8">
      7 <script type="text/javascript">
      8 
      9 function boom() {
     10  let audioContext = new window.AudioContext();
     11  let oscillator  = audioContext.createOscillator();
     12  let dst = audioContext.createMediaStreamDestination();
     13  oscillator.channelCount = 4;
     14  dst.channelCount = 4;
     15  oscillator.connect(dst, 0, 0);
     16  oscillator.start();
     17  mediaRec = new MediaRecorder(dst.stream);
     18 
     19  mediaRec.start(100);
     20  setTimeout(() => {
     21    dst.channelCount = 1;
     22    setTimeout(() => {
     23      mediaRec.stop();
     24      document.documentElement.removeAttribute("class");
     25    }, 100);
     26  }, 100);
     27 }
     28 </script>
     29 <body onload="boom();"></body>
     30 </html>