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

Side by Side Diff: LayoutTests/fast/events/popup-blocked-to-post-blank.html

Issue 187103002: id of iframe incorrectly sets window name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back no-referrer-subframe.html Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.setCanOpenWindows(); 6 testRunner.setCanOpenWindows();
7 testRunner.setPopupBlockingEnabled(true); 7 testRunner.setPopupBlockingEnabled(true);
8 testRunner.setCloseRemainingWindowsWhenComplete(true); 8 testRunner.setCloseRemainingWindowsWhenComplete(true);
9 testRunner.waitUntilDone(); 9 testRunner.waitUntilDone();
10 } 10 }
11 11
12 function test() { 12 function test() {
13 // We rely on sequential ordering of POST processing. 13 // We rely on sequential ordering of POST processing.
14 var form = document.getElementById('form'); 14 var form = document.getElementById('form');
15 form.submit(); 15 form.submit();
16 var form2 = document.getElementById('form2'); 16 var form2 = document.getElementById('form2');
17 form2.submit(); 17 form2.submit();
18 } 18 }
19 </script> 19 </script>
20 </head> 20 </head>
21 <body onload="test()"> 21 <body onload="test()">
22 If the POST pop-up was not blocked then there will be an ALERT containing a 22 If the POST pop-up was not blocked then there will be an ALERT containing a
23 Window object. Otherwise, the test passes. 23 Window object. Otherwise, the test passes.
24 <form id="form" action="data:text/html,<script>alert(window)</script>" target="_ blank"> 24 <form id="form" action="data:text/html,<script>alert(window)</script>" target="_ blank">
25 <input type="submit" value="Submit to new window"/> 25 <input type="submit" value="Submit to new window"/>
26 </form> 26 </form>
27 <form id="form2" action="data:text/html,<b>hello!</b><script>window.testRunner & & testRunner.notifyDone()</script>" target="target"> 27 <form id="form2" action="data:text/html,<b>hello!</b><script>window.testRunner & & testRunner.notifyDone()</script>" target="target">
28 <input type="submit" value="Submit local page Javascript"/> 28 <input type="submit" value="Submit local page Javascript"/>
29 </form> 29 </form>
30 <iframe id="target"></iframe> 30 <iframe name="target"></iframe>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698