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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/navigation/resources/post-with-modifier.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/resources/post-with-modifier.php b/third_party/WebKit/LayoutTests/http/tests/navigation/resources/post-with-modifier.php
index 797053fd0f63b1864f705c53c685911094796596..e4e02c06d12f1bb060bc99ef05e35bda24a804f7 100644
--- a/third_party/WebKit/LayoutTests/http/tests/navigation/resources/post-with-modifier.php
+++ b/third_party/WebKit/LayoutTests/http/tests/navigation/resources/post-with-modifier.php
@@ -1,12 +1,8 @@
<script>
-if (window.opener) {
- var data = {
- 'method': '<?=$_SERVER['REQUEST_METHOD'] ?>',
- 'formValue': '<?= $_POST['a'] ?>',
- };
- window.opener.postMessage(data, '*');
-} else {
- document.writeln('FAIL');
- testRunner.notifyDone();
-}
+mainTestWindow = window.open("", "mainTestWindow")
+var data = {
+ 'method': '<?=$_SERVER['REQUEST_METHOD'] ?>',
+ 'formValue': '<?= $_POST['a'] ?>',
+};
+mainTestWindow.postMessage(data, '*');
</script>

Powered by Google App Engine
This is Rietveld 408576698