Video is not started even if play button has been pressed.
[framework/web/webkit-efl.git] / LayoutTests / fast / events / popup-blocked-from-iframe-script.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script>
5 if (window.testRunner) {
6     testRunner.dumpAsText();
7     testRunner.setCanOpenWindows();
8     testRunner.setPopupBlockingEnabled(true);
9     testRunner.setCloseRemainingWindowsWhenComplete(true);
10     testRunner.waitUntilDone();
11     // Record current window count.
12     window.windowCount = window.testRunner.windowCount();
13 }
14 function test() {
15     if (window.testRunner && window.testRunner.windowCount() == window.windowCount)
16         document.getElementById("console").innerText = "PASSED";
17     // Close the test.
18     testRunner.notifyDone();
19 }
20 </script>
21 </head>
22 <body onload="test();">
23 <iframe src="data:text/html,I did open the window<script>window.open('about:blank','_blank', 'height=600,width=720');</script>"></iframe><br>
24 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.
25 <div id="console">FAILED</div>
26 </body>
27 </html>
28