mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb: Add MessageEvent.source
This commit is contained in:
parent
eaa3b85864
commit
1607b2c978
Notes:
sideshowbarker
2024-07-17 03:16:02 +09:00
Author: https://github.com/Lubrsi
Commit: 1607b2c978
Pull-request: https://github.com/SerenityOS/serenity/pull/21823
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/shannonbooth
Reviewed-by: https://github.com/trflynn89
3 changed files with 21 additions and 2 deletions
|
@ -1,4 +1,8 @@
|
|||
#import <DOM/Event.idl>
|
||||
#import <HTML/MessagePort.idl>
|
||||
|
||||
// FIXME: typedef (WindowProxy or MessagePort or ServiceWorker) MessageEventSource;
|
||||
typedef (WindowProxy or MessagePort) MessageEventSource;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/comms.html#messageevent
|
||||
[Exposed=(Window,Worker)]
|
||||
|
@ -8,7 +12,7 @@ interface MessageEvent : Event {
|
|||
readonly attribute any data;
|
||||
readonly attribute USVString origin;
|
||||
readonly attribute DOMString lastEventId;
|
||||
// FIXME: readonly attribute MessageEventSource? source;
|
||||
readonly attribute MessageEventSource? source;
|
||||
// FIXME: readonly attribute FrozenArray<MessagePort> ports;
|
||||
};
|
||||
|
||||
|
@ -16,6 +20,6 @@ dictionary MessageEventInit : EventInit {
|
|||
any data = null;
|
||||
USVString origin = "";
|
||||
DOMString lastEventId = "";
|
||||
// FIXME: MessageEventSource? source = null;
|
||||
MessageEventSource? source = null;
|
||||
// FIXME: sequence<MessagePort> ports = [];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue