summaryrefslogtreecommitdiffstats
path: root/dom/webidl/SecurityPolicyViolationEvent.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'dom/webidl/SecurityPolicyViolationEvent.webidl')
-rw-r--r--dom/webidl/SecurityPolicyViolationEvent.webidl18
1 files changed, 11 insertions, 7 deletions
diff --git a/dom/webidl/SecurityPolicyViolationEvent.webidl b/dom/webidl/SecurityPolicyViolationEvent.webidl
index 5578238347..4366347e14 100644
--- a/dom/webidl/SecurityPolicyViolationEvent.webidl
+++ b/dom/webidl/SecurityPolicyViolationEvent.webidl
@@ -1,6 +1,10 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
- * You can obtain one at http://mozilla.org/MPL/2.0/. */
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * The origin of this IDL file is
+ * https://w3c.github.io/webappsec-csp/#violation-events
+ */
enum SecurityPolicyViolationEventDisposition
{
@@ -16,15 +20,15 @@ interface SecurityPolicyViolationEvent : Event
readonly attribute DOMString documentURI;
readonly attribute DOMString referrer;
readonly attribute DOMString blockedURI;
- readonly attribute DOMString violatedDirective;
+ readonly attribute DOMString violatedDirective; // historical alias of effectiveDirective
readonly attribute DOMString effectiveDirective;
readonly attribute DOMString originalPolicy;
readonly attribute DOMString sourceFile;
readonly attribute DOMString sample;
readonly attribute SecurityPolicyViolationEventDisposition disposition;
readonly attribute unsigned short statusCode;
- readonly attribute long lineNumber;
- readonly attribute long columnNumber;
+ readonly attribute unsigned long lineNumber;
+ readonly attribute unsigned long columnNumber;
};
[GenerateInitFromJSON, GenerateToJSON]
@@ -38,8 +42,8 @@ dictionary SecurityPolicyViolationEventInit : EventInit
DOMString originalPolicy = "";
DOMString sourceFile = "";
DOMString sample = "";
- SecurityPolicyViolationEventDisposition disposition = "report";
+ SecurityPolicyViolationEventDisposition disposition = "enforce";
unsigned short statusCode = 0;
- long lineNumber = 0;
- long columnNumber = 0;
+ unsigned long lineNumber = 0;
+ unsigned long columnNumber = 0;
};