diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/dom/SecurityPolicyViolationEvent.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/dom/SecurityPolicyViolationEvent.idl')
-rw-r--r-- | Source/WebCore/dom/SecurityPolicyViolationEvent.idl | 35 |
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; }; |