2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2015-02-19 04:34:29 +03:00
|
|
|
/* 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
|
|
|
|
*/
|
|
|
|
|
2019-09-11 17:35:28 +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 {
|
2019-09-11 17:35:28 +03:00
|
|
|
constructor(DOMString type, FetchEventInit eventInitDict);
|
|
|
|
|
2019-08-28 20:51:37 +03:00
|
|
|
[SameObject, BinaryName="request_"] readonly attribute Request request;
|
2018-08-16 17:20:41 +03:00
|
|
|
readonly attribute DOMString clientId;
|
2018-11-15 11:28:23 +03:00
|
|
|
readonly attribute DOMString resultingClientId;
|
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;
|
2018-08-16 17:20:41 +03:00
|
|
|
DOMString clientId = "";
|
2018-11-15 11:28:23 +03:00
|
|
|
DOMString resultingClientId = "";
|
2015-10-25 06:29:43 +03:00
|
|
|
boolean isReload = false;
|
2015-02-19 04:34:29 +03:00
|
|
|
};
|