[whatwg/fetch] Update fetch-later spec according to WPT expectations=0D (PR #1902)

There were two missing parts:

1. The body can either be null or empty (it was missing the
empty case)
2. Quota computation shouldn't include aborted or already
completed requests. WPT uses `AbortController` to ensure
quota is freed up. This also makes sense, since they are
no longer relevant. Therefore, only consider pending
deferred fetches when computing quota.

- [ ] At least two implementers are interested (and none opposed):
   * …
   * …
- [x] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * https://wpt.fyi/results/fetch/fetch-later/quota/empty-payload.https.window.html?label=experimental&label=master&aligned
   * https://wpt.fyi/results/fetch/fetch-later/quota/accumulated-oversized-payload.https.window.html?label=experimental&label=master&aligned
- [x] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: n/a already passing tests
   * Gecko: n/a no implementation yet
   * WebKit: n/a no implementation yet
- [x] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. -->

(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://whatpr.org/fetch/1902.html" title="Last updated on Jan 4, 2026, 4:52 PM UTC (7b9c478)">Preview</a> | <a href="https://whatpr.org/fetch/1902/3bab31a...7b9c478.html" title="Last updated on Jan 4, 2026, 4:52 PM UTC (7b9c478)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/1902

-- Commit Summary --

  * Update fetch-later spec according to WPT expectations

-- File Changes --

    M fetch.bs (5)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1902.patch
https://github.com/whatwg/fetch/pull/1902.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1902
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1902@github.com>

Received on Sunday, 4 January 2026 16:52:36 UTC