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

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

Issue 2331213002: Add `disposition` to SecurityPolicyViolationEvent (Closed)
Patch Set: Fix a typo in rebased test expectation 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.idl
diff --git a/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.idl b/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.idl
index 9c5c4d77df1891eccf818a5efb3b4d92c692931d..cfdfce096d153cc79258cf197361be1868ff1621 100644
--- a/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.idl
+++ b/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.idl
@@ -23,7 +23,11 @@
* DAMAGE.
*/
-// http://w3c.github.io/webappsec/specs/content-security-policy/#securitypolicyviolationevent-interface
+// https://w3c.github.io/webappsec-csp/#idl-index
+
+enum SecurityPolicyViolationEventDisposition {
+ "enforce", "report"
+};
[
Constructor(DOMString type, optional SecurityPolicyViolationEventInit eventInitDict),
@@ -36,6 +40,7 @@
readonly attribute DOMString violatedDirective;
readonly attribute DOMString effectiveDirective;
readonly attribute DOMString originalPolicy;
+ readonly attribute SecurityPolicyViolationEventDisposition disposition;
readonly attribute DOMString sourceFile;
[Measure] readonly attribute unsigned short statusCode;
readonly attribute long lineNumber;

Powered by Google App Engine
This is Rietveld 408576698