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 file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
8 callback interface ObserverCallback {
9 undefined handleEvent(FetchObserver observer);
14 "requesting", "responding",
16 "aborted", "errored", "complete"
19 [Exposed=(Window,Worker),
20 Pref="dom.fetchObserver.enabled"]
21 interface FetchObserver : EventTarget {
22 readonly attribute FetchState state;
25 attribute EventHandler onstatechange;
26 attribute EventHandler onrequestprogress;
27 attribute EventHandler onresponseprogress;