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

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

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, 1 month 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 <script> 1 <script>
2 if (window.opener) { 2 mainTestWindow = window.open("", "mainTestWindow")
3 var data = { 3 var data = {
4 'method': '<?=$_SERVER['REQUEST_METHOD'] ?>', 4 'method': '<?=$_SERVER['REQUEST_METHOD'] ?>',
5 'formValue': '<?= $_POST['a'] ?>', 5 'formValue': '<?= $_POST['a'] ?>',
6 }; 6 };
7 window.opener.postMessage(data, '*'); 7 mainTestWindow.postMessage(data, '*');
8 } else {
9 document.writeln('FAIL');
10 testRunner.notifyDone();
11 }
12 </script> 8 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698