[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / fast / events / popup-blocked-from-iframe-src.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script>
5 if (window.layoutTestController) {
6     layoutTestController.dumpAsText();
7     layoutTestController.setCanOpenWindows();
8     layoutTestController.setPopupBlockingEnabled(true);
9     layoutTestController.setCloseRemainingWindowsWhenComplete(true);
10     layoutTestController.waitUntilDone();
11     // Record current window count.
12     window.windowCount = window.layoutTestController.windowCount();
13 }
14 function test() {
15     if (!window.layoutTestController)
16         return;
17     if (layoutTestController.windowCount() == window.windowCount)
18         document.getElementById("console").innerText = "PASSED";
19     layoutTestController.notifyDone();
20 }
21 </script>
22 </head>
23 <body onload="test();">
24 <iframe src="javascript:window.open('about:blank','_blank', 'height=600,width=720')">popup</iframe><br>
25 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.
26 <div id="console">FAILED</div>
27 </body>
28 </html>
29