2015-02-19 04:34:29 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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/.
|
|
|
|
*
|
|
|
|
* For more information on this interface, please see
|
|
|
|
* http://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html
|
|
|
|
*/
|
|
|
|
|
2016-01-11 21:31:56 +03:00
|
|
|
[Constructor(DOMString type, FetchEventInit eventInitDict),
|
2018-01-27 00:08:59 +03:00
|
|
|
Func="ServiceWorkerVisible",
|
2015-02-19 04:34:29 +03:00
|
|
|
Exposed=(ServiceWorker)]
|
2015-10-25 03:24:45 +03:00
|
|
|
interface FetchEvent : ExtendableEvent {
|
2016-01-09 06:35:22 +03:00
|
|
|
[SameObject] readonly attribute Request request;
|
2015-11-26 02:05:34 +03:00
|
|
|
readonly attribute DOMString? clientId;
|
2015-02-19 04:34:29 +03:00
|
|
|
readonly attribute boolean isReload;
|
|
|
|
|
2015-03-24 10:37:39 +03:00
|
|
|
[Throws]
|
2015-07-31 20:30:55 +03:00
|
|
|
void respondWith(Promise<Response> r);
|
2015-02-19 04:34:29 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
dictionary FetchEventInit : EventInit {
|
2016-01-09 06:35:22 +03:00
|
|
|
required Request request;
|
2015-11-26 02:05:34 +03:00
|
|
|
DOMString? clientId = null;
|
2015-10-25 06:29:43 +03:00
|
|
|
boolean isReload = false;
|
2015-02-19 04:34:29 +03:00
|
|
|
};
|