- From: Luke Warlow <notifications@github.com>
- Date: Sat, 28 Nov 2026 06:08:36 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/1843/review/6098289264@github.com>
@lukewarlow commented on this pull request. > - <p><p>Set <var>controller</var> to the result of calling <a for=/>fetch</a> given - <var>request</var> and <a for=fetch><i>processResponse</i></a> given <var>response</var> being - these steps: + <p>Let <var>processRequestEndOfBody</var> be these steps: + + <ol> + <li><p>If <var>hasUploadListeners</var> is false, then return. + + <li><p>Increase <var>requestBodyTransmitted</var> by <var>bytesLength</var>. + + <li><p><a>Fire a progress event</a> named <a event><code>progress</code></a> at <var>requestObserver</var> + with <var>requestBodyTransmitted</var> and <var>requestBodyLength</var>. + </ol> + + <li> + <p>Let <var>processResponse</var> given a <var>response</var> be these steps: Coming back to this I think your suggestion does work (either I have added more wiring since then or other PRs have). This is testing my fetch knowledge a bit but would stuff like Cache hits or service worker responses go through that algorithm? If not we'll need to handle them somehow. Would this leak data about no-cors response sizes that aren't otherwise observable? (For requestMonitor we reject the fetch promise for no-cors mode, perhaps we can do the same here) -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1843#discussion_r4727349961 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/pull/1843/review/6098289264@github.com>
Received on Saturday, 28 November 2026 14:08:40 UTC