1 <html> 2 <script> 3 var url = "resources/open-after-close-popup.html"; 4 5 function test() { 6 var w = window.open(url, 'popup', "height=200, width=200, top=100, left=100"); 7 w.close(); 8 window.open(url, 'popup', "height=200, width=200, top=100, left=100"); 9 } 10 </script> 11 <body onload="test()"> 12 <p>This test checks for a regression against rdar://problem/3572585: window.open fails if name param = the name of a window just closed in same function.</p> 13 <p>If the test passes, you will see a "PASS" message open in a new window.</p> 14 <hr> 15 </body> 16 </html> 17