1// This is a repro for a crash bug that existed in Blink. See 2// https://crbug.com/1290014. If there's no crash then the test passed. 3 4test(t => { 5 const iframeTag = document.createElement('iframe'); 6 document.body.appendChild(iframeTag); 7 8 const readableStream = new ReadableStream(); 9 const reader = new iframeTag.contentWindow.ReadableStreamDefaultReader(readableStream); 10 iframeTag.remove(); 11 reader.cancel(); 12 reader.read(); 13}, 'should not crash on reading from stream cancelled in destroyed realm'); 14