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

Unified Diff: LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl

Issue 90993003: X-XSS-Protection parser shoud reject '0; mode=block' (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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: LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
diff --git a/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl b/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
index 61b60373a15821de589286f1b5726b7f8defb6fc..527f9b7c8f03158d910057f52038aed5a0d72e6c 100755
--- a/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
+++ b/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
@@ -63,6 +63,9 @@ if ($cgi->param('malformed-header')) {
if ($cgi->param('malformed-header') == 9) {
print "X-XSS-Protection: 1; mode=block; report=/fail; report=/fail;\n";
}
+ if ($cgi->param('malformed-header') == 10) {
+ print "X-XSS-Protection: 0; mode=block\n";
+ }
}
if ($cgi->param('csp') eq '_empty_') {

Powered by Google App Engine
This is Rietveld 408576698