From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/Modules/websockets/CloseEvent.idl | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'Source/WebCore/Modules/websockets/CloseEvent.idl') diff --git a/Source/WebCore/Modules/websockets/CloseEvent.idl b/Source/WebCore/Modules/websockets/CloseEvent.idl index 3f29a4959..db536c227 100644 --- a/Source/WebCore/Modules/websockets/CloseEvent.idl +++ b/Source/WebCore/Modules/websockets/CloseEvent.idl @@ -28,12 +28,17 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// FIXME: This should be exposed to workers as well. [ - JSNoStaticTables, - ConstructorTemplate=Event + Constructor(DOMString type, optional CloseEventInit eventInitDict), ] interface CloseEvent : Event { - [InitializedByEventConstructor] readonly attribute boolean wasClean; - [InitializedByEventConstructor] readonly attribute unsigned short code; - [InitializedByEventConstructor] readonly attribute DOMString reason; + readonly attribute boolean wasClean; + readonly attribute unsigned short code; + readonly attribute USVString reason; }; +dictionary CloseEventInit : EventInit { + boolean wasClean = false; + unsigned short code = 0; + USVString reason = ""; +}; -- cgit v1.2.1