summaryrefslogtreecommitdiffstats
path: root/dom/media/test/crashtests/1587248.html
blob: 10c555e2b1653be50e3739cf48406faa44657f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html class="reftest-wait">
<head>
<script>
function start () {
  const audio = document.getElementById('id_4')
  const doc = new Document()
  const stream = new MediaStream()
  const track = document.createElementNS('http://www.w3.org/1999/xhtml', 'track')
  audio.srcObject = stream
  track.textContent = '�'
  setTimeout(() => {
    track.replaceChild(audio, track.childNodes[0])
    audio.play().then(function (arg4) { })
    document.documentElement.removeAttribute("class")
  }, 157)
  doc.adoptNode(audio)
}

document.addEventListener('DOMContentLoaded', start)
</script>
</head>
<audio class="" id="id_4" itemscope></audio>
</html>