1
Fork 0
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:
Idan Horowitz 2021-10-01 18:39:03 +03:00 committed by Andreas Kling
parent 9863de4609
commit d44857d34d
4 changed files with 36 additions and 8 deletions

View file

@ -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 = [];
};