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

Unified Diff: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h

Issue 2436003002: CSP: Add 'script-sample' to violation reports. (Closed)
Patch Set: Rebase. Created 3 years, 10 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/frame/csp/CSPDirectiveList.h
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
index ecc64b96794eba6890ce914bebbb8ad09bbb6893..31bd004eb5871ed4e500fe6a169b234a2d3a24bd 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
@@ -45,10 +45,12 @@ class CORE_EXPORT CSPDirectiveList
}
bool allowJavaScriptURLs(Element*,
+ const String& source,
const String& contextURL,
const WTF::OrdinalNumber& contextLine,
ContentSecurityPolicy::ReportingStatus) const;
bool allowInlineEventHandlers(Element*,
+ const String& source,
const String& contextURL,
const WTF::OrdinalNumber& contextLine,
ContentSecurityPolicy::ReportingStatus) const;
@@ -226,7 +228,8 @@ class CORE_EXPORT CSPDirectiveList
const KURL& blockedURL,
const String& contextURL,
const WTF::OrdinalNumber& contextLine,
- Element*) const;
+ Element*,
+ const String& source) const;
void reportViolationWithState(
const String& directiveText,
const ContentSecurityPolicy::DirectiveType&,
@@ -262,6 +265,7 @@ class CORE_EXPORT CSPDirectiveList
bool checkInlineAndReportViolation(SourceListDirective*,
const String& consoleMessage,
Element*,
+ const String& source,
const String& contextURL,
const WTF::OrdinalNumber& contextLine,
bool isScript,

Powered by Google App Engine
This is Rietveld 408576698