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

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

Issue 2428473004: Remove the 'reflected-xss' directive from CSP. (Closed)
Patch Set: Test. 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/security/xssAuditor/resources/echo-intertag.pl
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl b/third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
index b790d513878ad393e9b2ce3026ba97b59d7f5b7f..b16f95e0b0f3383cdfdc6dfd599316e925092871 100755
--- a/third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
+++ b/third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/echo-intertag.pl
@@ -65,12 +65,6 @@ if ($cgi->param('malformed-header')) {
}
}
-if ($cgi->param('csp') eq '_empty_') {
- print "Content-Security-Policy: reflected-xss\n";
-} elsif ($cgi->param('csp')) {
- print "Content-Security-Policy: reflected-xss " . $cgi->param('csp') . "\n";
-}
-
print "Content-Type: text/html; charset=";
print $cgi->param('charset') ? $cgi->param('charset') : "UTF-8";
print "\n\n";

Powered by Google App Engine
This is Rietveld 408576698