summaryrefslogtreecommitdiffstats
path: root/dom/media/tests/crashtests/1443212.html
blob: 3f0eedac90c50b7a291c15f3534b2b5eb863b121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<script>
window.addEventListener("load", () => {
  const c = document.createElement("canvas");
  c.getContext("2d");
  const stream = c.captureStream();
  const [track] = stream.getTracks();
  stream.removeTrack(track);
  track.stop();
  stream.addTrack(track);
  stream.removeTrack(track);
  stream.addTrack(track);
});
</script>