aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/ExtendableEvent.webidl
diff options
context:
space:
mode:
authorRahul Sharma <rsconceptx@gmail.com>2016-09-16 18:22:30 +0530
committerRahul Sharma <rsconceptx@gmail.com>2016-09-17 20:58:46 +0530
commit8b10cca91fb8163d648838706525b25935e8374b (patch)
tree27d6834e04a3d7325d14ee4b7bb9074044fa8f36 /components/script/dom/webidls/ExtendableEvent.webidl
parent6ac9dfdd34299d284995f5e7f957f515f4a2c880 (diff)
downloadservo-8b10cca91fb8163d648838706525b25935e8374b.tar.gz
servo-8b10cca91fb8163d648838706525b25935e8374b.zip
implement ExtendableEvent as base type for ServiceWorker events
Diffstat (limited to 'components/script/dom/webidls/ExtendableEvent.webidl')
-rw-r--r--components/script/dom/webidls/ExtendableEvent.webidl17
1 files changed, 17 insertions, 0 deletions
diff --git a/components/script/dom/webidls/ExtendableEvent.webidl b/components/script/dom/webidls/ExtendableEvent.webidl
new file mode 100644
index 00000000000..09cb253e892
--- /dev/null
+++ b/components/script/dom/webidls/ExtendableEvent.webidl
@@ -0,0 +1,17 @@
+/* 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/. */
+
+// https://w3c.github.io/ServiceWorker/#extendable-event
+
+[Constructor(DOMString type,
+ optional ExtendableEventInit eventInitDict),
+ Exposed=ServiceWorker,
+ Pref="dom.serviceworker.enabled"]
+interface ExtendableEvent : Event {
+ [Throws] void waitUntil(/*Promise<*/any/*>*/ f);
+};
+
+dictionary ExtendableEventInit : EventInit {
+ // Defined for the forward compatibility across the derived events
+};