11cb0ef41Sopenharmony_ci// This is a repro for a crash bug that existed in Blink. See 21cb0ef41Sopenharmony_ci// https://crbug.com/1290014. If there's no crash then the test passed. 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_citest(t => { 51cb0ef41Sopenharmony_ci const iframeTag = document.createElement('iframe'); 61cb0ef41Sopenharmony_ci document.body.appendChild(iframeTag); 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_ci const readableStream = new ReadableStream(); 91cb0ef41Sopenharmony_ci const reader = new iframeTag.contentWindow.ReadableStreamDefaultReader(readableStream); 101cb0ef41Sopenharmony_ci iframeTag.remove(); 111cb0ef41Sopenharmony_ci reader.cancel(); 121cb0ef41Sopenharmony_ci reader.read(); 131cb0ef41Sopenharmony_ci}, 'should not crash on reading from stream cancelled in destroyed realm'); 14