mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibWeb: Add the missing MessageEvent IDL constructor
This commit is contained in:
parent
9863de4609
commit
d44857d34d
4 changed files with 36 additions and 8 deletions
|
@ -1,4 +1,7 @@
|
|||
#import <DOM/Event.idl>
|
||||
|
||||
interface MessageEvent : Event {
|
||||
constructor(DOMString type, optional MessageEventInit eventInitDict = {});
|
||||
|
||||
readonly attribute any data;
|
||||
readonly attribute USVString origin;
|
||||
|
@ -6,3 +9,11 @@ interface MessageEvent : Event {
|
|||
// FIXME: readonly attribute MessageEventSource? source;
|
||||
// FIXME: readonly attribute FrozenArray<MessagePort> ports;
|
||||
};
|
||||
|
||||
dictionary MessageEventInit : EventInit {
|
||||
any data = null;
|
||||
USVString origin = "";
|
||||
DOMString lastEventId = "";
|
||||
// FIXME: MessageEventSource? source = null;
|
||||
// FIXME: sequence<MessagePort> ports = [];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue