Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /webcodecs/image-decoder-disconnect-readable-stream-crash.https.html - WPT Dashboard Interop Dashboard
<title>Test ImageDecoder destruction w/ ReadableStream doesn't crash.</title>
<body>
<script>
let iframe = document.createElement('iframe');
document.body.appendChild(iframe);
let decoder = new iframe.contentWindow.ImageDecoder({
data: new Blob(['blob']).stream(),
type: 'image/jpeg',
});
document.querySelector('body').remove();
</script>
</body>