summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/SecurityPolicyViolationEvent.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/SecurityPolicyViolationEvent.idl')
-rw-r--r--Source/WebCore/dom/SecurityPolicyViolationEvent.idl35
1 files changed, 25 insertions, 10 deletions
diff --git a/Source/WebCore/dom/SecurityPolicyViolationEvent.idl b/Source/WebCore/dom/SecurityPolicyViolationEvent.idl
index 435707fce..cab6c52ee 100644
--- a/Source/WebCore/dom/SecurityPolicyViolationEvent.idl
+++ b/Source/WebCore/dom/SecurityPolicyViolationEvent.idl
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
+ * Copyright (C) 2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -23,15 +24,29 @@
*/
[
- Conditional=CSP_NEXT,
- ConstructorTemplate=Event,
+ 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;
+ readonly attribute USVString documentURI;
+ readonly attribute DOMString referrer;
+ readonly attribute USVString blockedURI;
+ readonly attribute DOMString violatedDirective;
+ readonly attribute DOMString effectiveDirective;
+ readonly attribute DOMString originalPolicy;
+ readonly attribute USVString sourceFile;
+ readonly attribute unsigned short statusCode;
+ readonly attribute long lineNumber;
+ readonly attribute long columnNumber;
+};
+
+dictionary SecurityPolicyViolationEventInit : EventInit {
+ USVString documentURI = "";
+ DOMString referrer = "";
+ USVString blockedURI = "";
+ DOMString violatedDirective = "";
+ DOMString effectiveDirective = "";
+ DOMString originalPolicy = "";
+ USVString sourceFile = "";
+ unsigned short statusCode = 0;
+ long lineNumber = 0;
+ long columnNumber = 0;
};