summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/mediacapture-image/ImageCapture-grabFrame-crash.html
blob: d4bf57f0fa9f851db48cf47a78ef62f86e2942fb (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<meta charset="utf-8">
<title>Repro of https://crbug.com/1374294</title>
<body></body>
<script>
  let iframe = document.createElement('iframe');
  document.body.appendChild(iframe);
  let generator = new iframe.contentWindow.MediaStreamTrackGenerator({kind: 'video'});
  const capture = new ImageCapture(generator);
  capture.grabFrame();
</script>