- From: Luke Warlow <notifications@github.com>
- Date: Fri, 25 Jul 2025 05:51:57 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/1843/review/3055289835@github.com>
@lukewarlow commented on this pull request. > @@ -7558,6 +7559,14 @@ dictionary RequestInit { RequestDuplex duplex; RequestPriority priority; any window; // can only be set to null + FetchObserverCallback observer; +}; + +callback FetchObserverCallback = undefined (FetchObserver requestObserver, FetchObserver responseObserver); Firefox has the below IDL. I split it so the observers still fire events named progress but it's maybe fine to keep it as a single eventtarget and just change the event names? ```webidl [Exposed=Window] callback interface ObserverCallback { undefined handleEvent(FetchObserver observer); }; enum FetchState { // Pending states "requesting", "responding", // Final states "aborted", "errored", "complete" }; [Exposed=(Window,Worker), Pref="dom.fetchObserver.enabled"] interface FetchObserver : EventTarget { readonly attribute FetchState state; // Events attribute EventHandler onstatechange; attribute EventHandler onrequestprogress; attribute EventHandler onresponseprogress; }; ``` -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1843#pullrequestreview-3055289835 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/pull/1843/review/3055289835@github.com>
Received on Friday, 25 July 2025 12:52:01 UTC