Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: LayoutTests/fast/events/popup-blocked-from-iframe-src.html

Issue 6482031: Merge 77049 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/events/popup-blocked-from-iframe-src-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 if (window.layoutTestController) { 5 if (window.layoutTestController) {
6 layoutTestController.dumpAsText(); 6 layoutTestController.dumpAsText();
7 layoutTestController.setCanOpenWindows(); 7 layoutTestController.setCanOpenWindows();
8 layoutTestController.setPopupBlockingEnabled(true); 8 layoutTestController.setPopupBlockingEnabled(true);
9 layoutTestController.setCloseRemainingWindowsWhenComplete(true); 9 layoutTestController.setCloseRemainingWindowsWhenComplete(true);
10 layoutTestController.waitUntilDone(); 10 layoutTestController.waitUntilDone();
11 // Record current window count. 11 // Record current window count.
12 window.windowCount = window.layoutTestController.windowCount(); 12 window.windowCount = window.layoutTestController.windowCount();
13 } 13 }
14 function test() { 14 function test() {
15 if (!window.layoutTestController) 15 if (!window.layoutTestController)
16 return; 16 return;
17 if (layoutTestController.windowCount() == window.windowCount) 17 if (layoutTestController.windowCount() == window.windowCount)
18 document.getElementById("console").innerText = "PASSED"; 18 document.getElementById("console").innerText = "PASSED";
19 layoutTestController.notifyDone(); 19 layoutTestController.notifyDone();
20 } 20 }
21 </script> 21 </script>
22 </head> 22 </head>
23 <body onload="test();"> 23 <body onload="test();">
24 <iframe src="javascript:window.open('about:blank','_blank', 'height=600,width=72 0')">popup</iframe><br> 24 <iframe src="javascript:window.open('about:blank','_blank', 'height=600,width=72 0')">popup</iframe><br>
25 When running script to open a window without user gesture from SRC of the enclos ing iframe, webkit should test out that the opening is not initiated by user. Th is is a test case for bug https://bugs.webkit.org/show_bug.cgi?id=53244. 25 When running script to open a window without user gesture from SRC of the enclos ing iframe, webkit should test out that the opening is not initiated by user. Th is is a test case for bug https://bugs.webkit.org/show_bug.cgi?id=53244.
26 <div id="console">FAILED</div> 26 <div id="console">FAILED</div>
27 </body> 27 </body>
28 </html> 28 </html>
29 29
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/popup-blocked-from-iframe-src-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698