blob: 2117eeb63d2389bca254f1aad9eba4476a78d17e [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.setCanOpenWindows();
layoutTestController.setPopupBlockingEnabled(true);
layoutTestController.setCloseRemainingWindowsWhenComplete(true);
layoutTestController.waitUntilDone();
// Record current window count.
window.windowCount = window.layoutTestController.windowCount();
}
function test() {
if (window.layoutTestController && window.layoutTestController.windowCount() == window.windowCount)
document.getElementById("console").innerText = "PASSED";
// Close the test.
layoutTestController.notifyDone();
}
</script>
</head>
<body onload="test();">
<iframe src="data:text/html,I did open the window<script>window.open('about:blank','_blank', 'height=600,width=720');</script>"></iframe><br>
When calling script to open a window without user gesture from the enclosing iframe, webkit should test out that the opening is not initiated by user. This is a test case for bug https://bugs.webkit.org/show_bug.cgi?id=42827.
<div id="console">FAILED</div>
</body>
</html>