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

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

Issue 2331213002: Add `disposition` to SecurityPolicyViolationEvent (Closed)
Patch Set: Update SecurityPolicyViolationEventInit.idl, update test Created 4 years, 3 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 2b5ae449f5b7d17e3d1a63fc2e78dcfffa321ce5..66ab49fc13f4656544f396475c07c3e4896191ae 100644
--- a/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.idl
+++ b/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.idl
@@ -22,7 +22,11 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 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),
@@ -35,6 +39,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