summaryrefslogtreecommitdiffstats
path: root/dom/media/test/crashtests/1872787.html
blob: d02a67138e39168d8567a088ebc76322cf74361d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html class="reftest-wait">
<title>crashtest for bug 1872787</title>
<script>
document.addEventListener("DOMContentLoaded", () => {
  let a = document.createElementNS("http://www.w3.org/1999/xhtml", "video");
  document.documentElement.appendChild(a);
  let b = new AudioContext({"sampleRate": 12000});
  let _ = new MediaElementAudioSourceNode(b, {"mediaElement": a});
  a.mozCaptureStreamUntilEnded();
  // There is nothing to wait for but that no exceptions are thrown.
  document.documentElement.removeAttribute("class");
})
</script>