aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/ExtendableMessageEvent.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/ExtendableMessageEvent.webidl')
-rw-r--r--components/script/dom/webidls/ExtendableMessageEvent.webidl16
1 files changed, 8 insertions, 8 deletions
diff --git a/components/script/dom/webidls/ExtendableMessageEvent.webidl b/components/script/dom/webidls/ExtendableMessageEvent.webidl
index 4190757d1f2..247c08e7989 100644
--- a/components/script/dom/webidls/ExtendableMessageEvent.webidl
+++ b/components/script/dom/webidls/ExtendableMessageEvent.webidl
@@ -1,24 +1,24 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://w3c.github.io/ServiceWorker/#extendablemessage-event-section
-[Constructor(DOMString type, optional ExtendableMessageEventInit eventInitDict),
- Exposed=ServiceWorker,
+[Exposed=ServiceWorker,
Pref="dom.serviceworker.enabled"]
interface ExtendableMessageEvent : ExtendableEvent {
+ [Throws] constructor(DOMString type, optional ExtendableMessageEventInit eventInitDict = {});
readonly attribute any data;
readonly attribute DOMString origin;
readonly attribute DOMString lastEventId;
// [SameObject] readonly attribute (Client or ServiceWorker /*or MessagePort*/)? source;
- // readonly attribute FrozenArray<MessagePort>? ports;
+ readonly attribute /*FrozenArray<MessagePort>*/any ports;
};
dictionary ExtendableMessageEventInit : ExtendableEventInit {
- any data;
- DOMString origin;
- DOMString lastEventId;
+ any data = null;
+ DOMString origin = "";
+ DOMString lastEventId = "";
// (Client or ServiceWorker /*or MessagePort*/)? source;
- // sequence<MessagePort>? ports;
+ sequence<MessagePort> ports = [];
};