summaryrefslogtreecommitdiffstats
path: root/dom/media/test/crashtests/1601422.html
blob: 9ff3c1a07a0b36da026d2d6c9bd45aa03bc7ab75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<html class="reftest-wait">
<head>
<script>
(async _ => {
  try {
    const video = document.createElement('video')
    video.preload = 'metadata'
    video.src = 'sound.ogg'
    await new Promise(r => video.onloadedmetadata = r)
    const stream_1 = video.mozCaptureStreamUntilEnded()
    video.src = ''
    const stream_2 = video.mozCaptureStreamUntilEnded()
  } finally {
    document.documentElement.removeAttribute("class")
  }
})()
</script>
</head>
</html>