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

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 44b9ccb34b88009d2916a782b23ad496944014ba..970353b8750518980ba92ee005fd349908704ad4 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
@@ -46,10 +46,12 @@ class CORE_EXPORT CSPDirectiveList
}
bool allowJavaScriptURLs(Element*,
+ const String& source,
const String& contextURL,
const WTF::OrdinalNumber& contextLine,
SecurityViolationReportingPolicy) const;
bool allowInlineEventHandlers(Element*,
+ const String& source,
const String& contextURL,
const WTF::OrdinalNumber& contextLine,
SecurityViolationReportingPolicy) 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