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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/navigation/post-with-modifier.html

Issue 2417983002: Form submissions opening in a new window don't need special treatment anymore. (Closed)
Patch Set: Using params.source_site_instance for consistency with //chrome layer. Created 4 years, 2 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
OLDNEW
1 <div id="container"> 1 <div id="container">
2 <p>You should run this test in Test Runner</p> 2 <p>You should run this test in Test Runner</p>
3 <form method="post" action="resources/post-with-modifier.php"> 3 <form method="post" action="resources/post-with-modifier.php">
4 <input type="hidden" name="a" value="b"> 4 <input type="hidden" name="a" value="b">
5 <input type="submit"> 5 <input type="submit">
6 </form> 6 </form>
7 </div> 7 </div>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script src="/js-test-resources/js-test.js"></script> 9 <script src="/js-test-resources/js-test.js"></script>
10 <script> 10 <script>
(...skipping 14 matching lines...) Expand all
25 testRunner.setCloseRemainingWindowsWhenComplete(true); 25 testRunner.setCloseRemainingWindowsWhenComplete(true);
26 26
27 window.onload = function() { 27 window.onload = function() {
28 var submit = document.querySelector('input[type="submit"]'); 28 var submit = document.querySelector('input[type="submit"]');
29 eventSender.dragMode = false; 29 eventSender.dragMode = false;
30 eventSender.mouseMoveTo(submit.offsetLeft + 3, submit.offsetTop + 3); 30 eventSender.mouseMoveTo(submit.offsetLeft + 3, submit.offsetTop + 3);
31 eventSender.mouseDown(0); 31 eventSender.mouseDown(0);
32 eventSender.mouseUp(0, ['shiftKey']); 32 eventSender.mouseUp(0, ['shiftKey']);
33 }; 33 };
34 34
35 // Shift-clicking doesn't set window.opener, so we allow the new window
36 // to find the opener using the name being set below.
37 window.name = "mainTestWindow";
35 window.addEventListener('message', function(e) { 38 window.addEventListener('message', function(e) {
36 concludeTest(e.data); 39 concludeTest(e.data);
37 }); 40 });
38 } 41 }
39 </script> 42 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698