| testRunner.setCanOpenWindows(); |
| testRunner.dumpChildFramesAsText(); |
| testRunner.waitUntilDone(); |
| testRunner.setCloseRemainingWindowsWhenComplete() |
| testRunner.setPopupBlockingEnabled(true); |
| function closeWindow(windowToClose) |
| setTimeout(doneHandler, 1); |
| if (!windowToClose.closed) |
| setTimeout(doneHandler, 1); |
| else if (window.testRunner) |
| function handleClick(event) { |
| var newWindow = window.open('resources/window-opened.html', 'badName', 'width=100, height=100'); |
| log("Window was opened! Test succeeded!"); |
| eventSender.mouseMoveTo(2, 2); |
| eventSender.scheduleAsynchronousClick(); |
| var res = document.getElementById('res'); |
| res.innerHTML = res.innerHTML + msg + "<br>"; |
| <body style="border: 0; margin: 0" onload="test()"> |
| <iframe style="border: 0; margin: 0" src="resources/popup-blocking-click-in-iframe-otherFrame.html" id="otherFrame"></iframe> |
| <p>This tests that popup blocking does not supress windows opened in an iframe if the event handler is a function from an enclosing frame.</p> |
| <p>To run manually click the link in the iframe above with popup blocking enabled.</p> |