mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement MessageEvent.InitMessageEvent
InitMessageEvent had to be implemented as required by wpt. For this few keys of struct `MessageEvent` are now wrapped inside DomRefCell wrapper.
This commit is contained in:
parent
dcdf910a25
commit
cb1cb40a51
2 changed files with 46 additions and 12 deletions
|
@ -11,6 +11,17 @@ interface MessageEvent : Event {
|
|||
readonly attribute DOMString lastEventId;
|
||||
readonly attribute MessageEventSource? source;
|
||||
readonly attribute /*FrozenArray<MessagePort>*/any ports;
|
||||
|
||||
void initMessageEvent(
|
||||
DOMString type,
|
||||
optional boolean bubbles = false,
|
||||
optional boolean cancelable = false,
|
||||
optional any data = null,
|
||||
optional DOMString origin = "",
|
||||
optional DOMString lastEventId = "",
|
||||
optional MessageEventSource? source = null,
|
||||
optional sequence<MessagePort> ports = []
|
||||
);
|
||||
};
|
||||
|
||||
dictionary MessageEventInit : EventInit {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue