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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/navigation/resources/form-target.pl

Issue 2225383003: Origin header should be preserved in http requests made via OpenURL code path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test doesn't depent on initial URI of the frame (as long as it is cross-site). Created 4 years, 4 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/form-target.pl
diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/resources/form-target.pl b/third_party/WebKit/LayoutTests/http/tests/navigation/resources/form-target.pl
index c07187d0ea0ed920b2201166b8e1b3b3227c8f83..17ccd01f360d9ba7d2132d235996c95ec9cdaa3f 100755
--- a/third_party/WebKit/LayoutTests/http/tests/navigation/resources/form-target.pl
+++ b/third_party/WebKit/LayoutTests/http/tests/navigation/resources/form-target.pl
@@ -24,6 +24,22 @@ foreach $paramName (@paramNames)
print "<li>" . $paramName . " = " . $query->param($paramName) . "</li>"
}
+print <<HEADER2;
jww 2016/08/09 22:38:23 There are a lot of tests that use form-target.pl,
Łukasz Anforowicz 2016/08/10 00:03:19 Ooops. I thought that I fixed expectations of all
jww 2016/08/10 00:44:53 SGTM. If it's just the CSP tests using this, that'
+</ul>
+<p>Http headers:</p>
+<ul>
+HEADER2
+
+my %headers = map { $_ => $query->http($_) } $query->http();
+for my $header ( sort (keys %headers) ) {
+ if (("$header" ne "HTTP_ACCEPT_ENCODING") &&
+ ("$header" ne "HTTP_ACCEPT_LANGUAGE") &&
+ ("$header" ne "HTTP_ACCEPT") &&
+ ("$header" ne "HTTP_USER_AGENT")) {
+ print "<li>$header = $headers{$header}</li>\n";
+ }
+}
+
print <<FOOTER
</ul>
<script>

Powered by Google App Engine
This is Rietveld 408576698