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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/echo-head-base-href.pl

Issue 2524013002: XSS Auditor: Block by default. (Closed)
Patch Set: Rebase+Test 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/echo-head-base-href.pl
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/echo-head-base-href.pl b/third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/echo-head-base-href.pl
index 2a746f0c07ccacc2ee501abc6cb50780970a5085..54b120f85d1572029d42a51e7801dbbb0fde08d7 100755
--- a/third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/echo-head-base-href.pl
+++ b/third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/echo-head-base-href.pl
@@ -6,6 +6,8 @@ my $cgi = new CGI;
if ($cgi->param('enable-full-block')) {
print "X-XSS-Protection: 1; mode=block\n";
+} else {
+ print "X-XSS-Protection: 1\n";
}
print "Content-Type: text/html; charset=UTF-8\n\n";

Powered by Google App Engine
This is Rietveld 408576698