Bug 1861467 - [wpt-sync] Update web-platform-tests to eedf737ce39c512d0ca3471f988972e...
[gecko.git] / dom / webidl / ExtendableEvent.webidl
blob8bb8b665acc26866ba032e4f3c01497c0b7f822b
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * For more information on this interface, please see
7  * http://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html
8  */
10 [Exposed=ServiceWorker]
11 interface ExtendableEvent : Event {
12   constructor(DOMString type, optional ExtendableEventInit eventInitDict = {});
14   // https://github.com/slightlyoff/ServiceWorker/issues/261
15   [Throws]
16   undefined waitUntil(Promise<any> p);
19 dictionary ExtendableEventInit : EventInit {
20   // Defined for the forward compatibility across the derived events