summaryrefslogtreecommitdiffstats
path: root/dom/media/test/crashtests/1693043.html
blob: f73323bbd76180e479c37c1fbcf2465eecd95ae8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html class="reftest-wait">
<head>
<script>
async function boom() {
  const audio = document.createElement("audio");
  audio.preload = "metadata";
  audio.src = "sound.ogg";
  await new Promise(r => audio.onloadedmetadata = r);
  const s = audio.mozCaptureStream();
  const recorder = new MediaRecorder(
      new MediaStream(s.getTracks()),
      { audioBitsPerSecond: 3994678619 }
    );
  recorder.start();
  document.documentElement.removeAttribute("class");
}
</script>
</head>
<body onload="boom()">
</body>
</html>