blob: cecdda5c7836581b4877969b6c64d955a4431366 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><!-- webkit-test-runner [ JavaScriptCanOpenWindowsAutomatically=false ] -->
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
// Record current window count.
window.windowCount = window.testRunner.windowCount();
}
function test() {
if (!window.testRunner)
return;
if (testRunner.windowCount() == window.windowCount)
document.getElementById("console").innerText = "PASSED";
testRunner.notifyDone();
}
</script>
</head>
<body onload="test();">
<iframe src="javascript:window.open('about:blank','_blank', 'height=600,width=720')">popup</iframe><br>
When running script to open a window without user gesture from SRC of 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=53244.
<div id="console">FAILED</div>
</body>
</html>