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

Unified Diff: third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp

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
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
index cf34b0f0648f6a01271249bf1ab1e70716dfa7b6..fcccb1c1815d7b6bb6aa767a0ed5ed5776aac958 100644
--- a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
+++ b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
@@ -52,18 +52,14 @@ String XSSInfo::buildConsoleError() const {
: "its source code");
message.append(" was found within the request.");
- if (m_didSendCSPHeader)
- message.append(
- " The server sent a 'Content-Security-Policy' header requesting this "
- "behavior.");
- else if (m_didSendXSSProtectionHeader)
+ if (m_didSendXSSProtectionHeader)
message.append(
" The server sent an 'X-XSS-Protection' header requesting this "
"behavior.");
else
message.append(
- " The auditor was enabled as the server sent neither an "
- "'X-XSS-Protection' nor 'Content-Security-Policy' header.");
+ " The auditor was enabled as the server did not send an "
+ "'X-XSS-Protection' header.");
return message.toString();
}
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698