2021-10-01 12:39:03 -03:00
|
|
|
#import <DOM/Event.idl>
|
|
|
|
|
|
2022-10-07 19:45:09 -03:00
|
|
|
// https://html.spec.whatwg.org/multipage/comms.html#messageevent
|
2023-09-02 11:00:01 -03:00
|
|
|
[Exposed=(Window,Worker)]
|
2021-04-24 08:54:24 -03:00
|
|
|
interface MessageEvent : Event {
|
2021-10-01 12:39:03 -03:00
|
|
|
constructor(DOMString type, optional MessageEventInit eventInitDict = {});
|
2021-04-24 08:54:24 -03:00
|
|
|
|
2021-10-01 12:21:38 -03:00
|
|
|
readonly attribute any data;
|
2021-04-24 08:54:24 -03:00
|
|
|
readonly attribute USVString origin;
|
2021-10-01 12:30:30 -03:00
|
|
|
readonly attribute DOMString lastEventId;
|
|
|
|
|
// FIXME: readonly attribute MessageEventSource? source;
|
|
|
|
|
// FIXME: readonly attribute FrozenArray<MessagePort> ports;
|
2021-04-24 08:54:24 -03:00
|
|
|
};
|
2021-10-01 12:39:03 -03:00
|
|
|
|
|
|
|
|
dictionary MessageEventInit : EventInit {
|
|
|
|
|
any data = null;
|
|
|
|
|
USVString origin = "";
|
|
|
|
|
DOMString lastEventId = "";
|
|
|
|
|
// FIXME: MessageEventSource? source = null;
|
|
|
|
|
// FIXME: sequence<MessagePort> ports = [];
|
|
|
|
|
};
|