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

Unified Diff: third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.cpp

Issue 2421473004: CSP: Fire 'SecurityPolicyViolation' on the offending element. (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/events/SecurityPolicyViolationEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.cpp b/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.cpp
index e59b5292e749de5fd9a9d801a9226e2bf77ca65f..bcbef3735ccc59edaa6300dc896e5840fe58ab1a 100644
--- a/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.cpp
+++ b/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.cpp
@@ -38,7 +38,7 @@ const char kReport[] = "report";
SecurityPolicyViolationEvent::SecurityPolicyViolationEvent(
const AtomicString& type,
const SecurityPolicyViolationEventInit& initializer)
- : Event(type, initializer),
+ : Event(type, true, false, ComposedMode::Composed),
m_disposition(ContentSecurityPolicyHeaderTypeEnforce),
m_lineNumber(0),
m_columnNumber(0),
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleElement.cpp ('k') | third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698