378325-1.html (1174B)
1 <html class="reftest-wait"> 2 <head> 3 <title>Testcase bug - Crash [@ PresShell::FlushPendingNotifications] when removing window on focus and then reappearing again</title> 4 <script> 5 setTimeout('document.documentElement.className = ""', 500); 6 </script> 7 </head> 8 <body> 9 <iframe src="data:text/html;charset=utf-8,%3Chtml%3E%3Cbody%20tabindex%3D%221%22%20onfocus%3D%22top.doe2%28%29%3Bwindow.frameElement.parentNode.removeChild%28window.frameElement%29%3B%22%3E%0A%3Cscript%3E%0AsetTimeout%28function%28%29%7Bdocument.body.focus%28%29%7D%2C%20200%29%3B%0A%3C/script%3E%3C/body%3E%3C/html%3E" id="content"></iframe> 10 11 <script> 12 function doe() { 13 if (!document.getElementById('content')) { 14 var y = document.createElement('iframe'); 15 y.id = 'content'; 16 y.src = 'data:text/html;charset=utf-8,%3Chtml%3E%3Cbody%20tabindex%3D%221%22%20onfocus%3D%22top.doe2%28%29%3Bwindow.frameElement.parentNode.removeChild%28window.frameElement%29%3B%22%3E%0A%3Cscript%3E%0AsetTimeout%28function%28%29%7Bdocument.body.focus%28%29%7D%2C%20200%29%3B%0A%3C/script%3E%3C/body%3E%3C/html%3E'; 17 document.body.appendChild(y); 18 } 19 } 20 21 function doe2() { 22 setInterval(doe, 200); 23 } 24 </script> 25 </body> 26 </html>