aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/MessageEvent.webidl
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-11-07 22:35:43 -0500
committerGitHub <noreply@github.com>2019-11-07 22:35:43 -0500
commitdf9065afb6e1716044855a310d1e24f05221721d (patch)
tree17309749516f1f4e9c7fba4a67da05e1dfb46b9d /components/script/dom/webidls/MessageEvent.webidl
parentfc7b88019538de63fdd4d24ed720ad7198602fd8 (diff)
parentcf46a9a6dc1b57874a6f4722660b1a57b737b02e (diff)
downloadservo-df9065afb6e1716044855a310d1e24f05221721d.tar.gz
servo-df9065afb6e1716044855a310d1e24f05221721d.zip
Auto merge of #24636 - saschanaz:windowproxy, r=nox,jdm
Use MessageEventSource on MessageEvent IDL <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22617 <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components/script/dom/webidls/MessageEvent.webidl')
-rw-r--r--components/script/dom/webidls/MessageEvent.webidl11
1 files changed, 4 insertions, 7 deletions
diff --git a/components/script/dom/webidls/MessageEvent.webidl b/components/script/dom/webidls/MessageEvent.webidl
index 63dd9019cc9..1d4699cbe3c 100644
--- a/components/script/dom/webidls/MessageEvent.webidl
+++ b/components/script/dom/webidls/MessageEvent.webidl
@@ -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;