Serenity Operating System
at master 21 lines 718 B view raw
1#import <DOM/Event.idl> 2 3// https://html.spec.whatwg.org/multipage/comms.html#messageevent 4[Exposed=(Window,Worker), UseNewAKString] 5interface MessageEvent : Event { 6 constructor(DOMString type, optional MessageEventInit eventInitDict = {}); 7 8 readonly attribute any data; 9 readonly attribute USVString origin; 10 readonly attribute DOMString lastEventId; 11 // FIXME: readonly attribute MessageEventSource? source; 12 // FIXME: readonly attribute FrozenArray<MessagePort> ports; 13}; 14 15dictionary MessageEventInit : EventInit { 16 any data = null; 17 USVString origin = ""; 18 DOMString lastEventId = ""; 19 // FIXME: MessageEventSource? source = null; 20 // FIXME: sequence<MessagePort> ports = []; 21};