Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / popup-blocked-to-post-blank.html
blobb60d830d82d038344dff221534288d0e50d21fc3
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.setCanOpenWindows();
7 testRunner.setPopupBlockingEnabled(true);
8 testRunner.setCloseRemainingWindowsWhenComplete(true);
9 testRunner.waitUntilDone();
12 function test() {
13 // We rely on sequential ordering of POST processing.
14 var form = document.getElementById('form');
15 form.submit();
16 var form2 = document.getElementById('form2');
17 form2.submit();
19 </script>
20 </head>
21 <body onload="test()">
22 If the POST pop-up was not blocked then there will be an ALERT containing a
23 Window object. Otherwise, the test passes.
24 <form id="form" action="data:text/html,<script>alert(window)</script>" target="_blank">
25 <input type="submit" value="Submit to new window"/>
26 </form>
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"/>
29 </form>
30 <iframe name="target"></iframe>
31 </body>
32 </html>