tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ExtendableEvent.webidl (794B)


      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 */
      9 
     10 [Exposed=ServiceWorker]
     11 interface ExtendableEvent : Event {
     12  constructor(DOMString type, optional ExtendableEventInit eventInitDict = {});
     13 
     14  // https://github.com/slightlyoff/ServiceWorker/issues/261
     15  [Throws]
     16  undefined waitUntil(Promise<any> p);
     17 };
     18 
     19 dictionary ExtendableEventInit : EventInit {
     20  // Defined for the forward compatibility across the derived events
     21 };