[whatwg/fetch] Pass the window document to the deferred-fetch quota algorithm (PR #1974)

Reuse the associated document checked for full activity when obtaining the available deferred-fetch quota. The request client is an environment settings object.


<!--
    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.
-->
***

### :boom: Error: 422 Unprocessable Entity :boom: ###

[PR Preview](https://github.com/specinfra/pr-preview#pr-preview) failed to build. _(Last tried on Nov 19, 2026, 5:40 AM UTC)_.

<details>
<summary>More</summary>


PR Preview relies on a number of web services to run. There seems to be an issue with the following one:

:rotating_light: [Spec Generator](https://www.w3.org/publications/spec-generator/) - Spec Generator is the web service used to build bikeshed/ReSpec specs

:link: [Related URL](https://www.w3.org/publications/spec-generator/?type=bikeshed-spec&output=html&url=https%3A%2F%2Fraw.githubusercontent.com%2FJinDX%2Ffetch%2F93e565a910409c7396abcea15e2ca8a4e0fcb8ec%2Ffetch.bs&force=1&md-status=LS-PR&md-Text-Macro=PR-NUMBER%201974)

**Error output:**

```json
[
    {
        "lineNum": "731:10",
        "messageType": "warning",
        "text": "Highlighting 'http' uses the legacy slow highlighter. Recommend finding a TextMate grammar and using it with 'Highlight Grammar', or filing an issue on Bikeshed; see https://speced.github.io/bikeshed/#missing-languages."
    },
    {
        "lineNum": "3649:6",
        "messageType": "warning",
        "text": "Highlighting 'abnf' uses the legacy slow highlighter. Recommend finding a TextMate grammar and using it with 'Highlight Grammar', or filing an issue on Bikeshed; see https://speced.github.io/bikeshed/#missing-languages."
    },
    {
        "lineNum": null,
        "messageType": "failure",
        "text": "Did not generate, due to errors exceeding the allowed error level."
    }
]
```

_This seems to be an issue with the [Spec Generator](https://www.w3.org/publications/spec-generator/) service. PR Preview doesn't manage this service and so has no control over it. If you've identified an issue with it, you can [report the issue to the maintainers of Spec Generator](https://github.com/w3c/spec-generator/issues/new) directly. Please be courteous. Thank you!_

_If you don't have enough information above to solve the error by yourself or if the issue doesn't seem related to Spec Generator, you can [file an issue with PR Preview](https://github.com/specinfra/pr-preview/issues/new?title=Unidentified%20Error&body=See%20whatwg/fetch%231974.)._

</details>

You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Pass the window document to the deferred-fetch quota algorithm

-- File Changes --

    M fetch.bs (10)

-- Patch Links --

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

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

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

Received on Thursday, 19 November 2026 05:41:13 UTC