Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /streams/readable-streams/cross-realm-crash.window.html - WPT Dashboard Interop Dashboard
// This is a repro for a crash bug that existed in Blink. See
test(t => {
const iframeTag = document.createElement('iframe');
document.body.appendChild(iframeTag);
const readableStream = new ReadableStream();
const reader = new iframeTag.contentWindow.ReadableStreamDefaultReader(readableStream);
iframeTag.remove();
reader.cancel();
reader.read();
}, 'should not crash on reading from stream cancelled in destroyed realm');