mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Use MessageEventSource on MessageEvent IDL
This commit is contained in:
parent
7f77cb0bde
commit
f8b61c0315
4 changed files with 44 additions and 26 deletions
|
@ -9,9 +9,7 @@ interface MessageEvent : Event {
|
|||
readonly attribute any data;
|
||||
readonly attribute DOMString origin;
|
||||
readonly attribute DOMString lastEventId;
|
||||
// FIXME(#22617): WindowProxy is not exposed in Worker globals
|
||||
readonly attribute object? source;
|
||||
//readonly attribute (WindowProxy or MessagePort)? source;
|
||||
readonly attribute MessageEventSource? source;
|
||||
readonly attribute /*FrozenArray<MessagePort>*/any ports;
|
||||
};
|
||||
|
||||
|
@ -20,9 +18,8 @@ dictionary MessageEventInit : EventInit {
|
|||
DOMString origin = "";
|
||||
DOMString lastEventId = "";
|
||||
//DOMString channel;
|
||||
Window? source;
|
||||
//(WindowProxy or MessagePort)? source;
|
||||
sequence<MessagePort> ports;
|
||||
MessageEventSource? source = null;
|
||||
sequence<MessagePort> ports = [];
|
||||
};
|
||||
|
||||
typedef (/*WindowProxy or */MessagePort or ServiceWorker) MessageEventSource;
|
||||
typedef (WindowProxy or MessagePort or ServiceWorker) MessageEventSource;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue