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

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

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/Source/core/html/parser/XSSAuditorDelegate.h
diff --git a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.h b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.h
index 9ddb9fdc8795eb02d8b74d9d706f51af416014c0..a7ad62170b9475a9c12174694270155e46d78bed 100644
--- a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.h
+++ b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.h
@@ -46,11 +46,9 @@ class XSSInfo {
public:
static std::unique_ptr<XSSInfo> create(const String& originalURL,
bool didBlockEntirePage,
- bool didSendXSSProtectionHeader,
- bool didSendCSPHeader) {
+ bool didSendXSSProtectionHeader) {
return wrapUnique(new XSSInfo(originalURL, didBlockEntirePage,
- didSendXSSProtectionHeader,
- didSendCSPHeader));
+ didSendXSSProtectionHeader));
}
String buildConsoleError() const;
@@ -59,18 +57,15 @@ class XSSInfo {
String m_originalURL;
bool m_didBlockEntirePage;
bool m_didSendXSSProtectionHeader;
- bool m_didSendCSPHeader;
TextPosition m_textPosition;
private:
XSSInfo(const String& originalURL,
bool didBlockEntirePage,
- bool didSendXSSProtectionHeader,
- bool didSendCSPHeader)
+ bool didSendXSSProtectionHeader)
: m_originalURL(originalURL.isolatedCopy()),
m_didBlockEntirePage(didBlockEntirePage),
- m_didSendXSSProtectionHeader(didSendXSSProtectionHeader),
- m_didSendCSPHeader(didSendCSPHeader) {}
+ m_didSendXSSProtectionHeader(didSendXSSProtectionHeader) {}
};
class XSSAuditorDelegate final {

Powered by Google App Engine
This is Rietveld 408576698