4 if (window.layoutTestController) {
5 layoutTestController.dumpAsText();
6 layoutTestController.setCanOpenWindows();
7 layoutTestController.setPopupBlockingEnabled(true);
8 layoutTestController.setCloseRemainingWindowsWhenComplete(true);
9 layoutTestController.waitUntilDone();
10 // Record current window count.
11 window.windowCount = window.layoutTestController.windowCount();
15 if (window.layoutTestController && window.layoutTestController.windowCount() == window.windowCount)
16 document.getElementById("console").innerText = "PASSED";
18 layoutTestController.notifyDone();
22 <body onload="test()">
24 window.open("javascript:window.open('about:blank', '_blank', 'height=600,width=720')");
26 If the inner pop-up was not blocked then there will be one additional windows generated. Otherwise, the test passes.<br>
27 For more details, please refer to https://bugs.webkit.org/show_bug.cgi?id=37138.
28 <div id="console">FAILED</div>