Index: core/events/SecurityPolicyViolationEvent.idl |
diff --git a/core/events/SecurityPolicyViolationEvent.idl b/core/events/SecurityPolicyViolationEvent.idl |
index 5ac10f27e0173d9a89717fb8c6c75b67362e8834..f3984a53cfa267e5d1c2f9832d71e9c652fad73b 100644 |
--- a/core/events/SecurityPolicyViolationEvent.idl |
+++ b/core/events/SecurityPolicyViolationEvent.idl |
@@ -22,18 +22,22 @@ |
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// http://w3c.github.io/webappsec/specs/content-security-policy/#securitypolicyviolationevent-interface |
+ |
[ |
- EventConstructor, |
- RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures, |
+ Constructor(DOMString type, optional SecurityPolicyViolationEventInit eventInitDict), |
] interface SecurityPolicyViolationEvent : Event { |
- [InitializedByEventConstructor] readonly attribute DOMString documentURI; |
- [InitializedByEventConstructor] readonly attribute DOMString referrer; |
- [InitializedByEventConstructor] readonly attribute DOMString blockedURI; |
- [InitializedByEventConstructor] readonly attribute DOMString violatedDirective; |
- [InitializedByEventConstructor] readonly attribute DOMString effectiveDirective; |
- [InitializedByEventConstructor] readonly attribute DOMString originalPolicy; |
- [InitializedByEventConstructor] readonly attribute DOMString sourceFile; |
- [InitializedByEventConstructor] readonly attribute long lineNumber; |
- [InitializedByEventConstructor] readonly attribute long columnNumber; |
- [InitializedByEventConstructor] readonly attribute long statusCode; |
+ // TODO(philipj): The spec says "documentURL". |
+ [Measure] readonly attribute DOMString documentURI; |
+ readonly attribute DOMString referrer; |
+ // TODO(philipj): The spec says "blockedURL". |
+ [Measure] readonly attribute DOMString blockedURI; |
+ readonly attribute DOMString violatedDirective; |
+ readonly attribute DOMString effectiveDirective; |
+ readonly attribute DOMString originalPolicy; |
+ readonly attribute DOMString sourceFile; |
+ // FIXME: The spec says "statusCode" is a DOMString. |
+ [Measure] readonly attribute long statusCode; |
+ readonly attribute long lineNumber; |
+ readonly attribute long columnNumber; |
}; |