[whatwg/fetch] Set full timing info for all navigation requests (PR #1975)

A fetch controller's full timing info was only set when the request's destination was "document". HTML extracts it for every navigation that has a fetch controller, including those of iframe and frame elements, whose requests have the destination "iframe" and "frame". Those navigations hit the assert in extract full timing info.

Setting it for every navigation request fixes that, and also makes it available for object and embed requests (see https://github.com/whatwg/html/issues/13285).

Found while reviewing https://github.com/whatwg/html/pull/12890.

- [x] At least two implementers are interested (and none opposed):
   * Not needed: browsers already expose navigation timing for iframe and frame navigations; this makes the specification match.
- [x] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * Covered by existing tests, such as [navigation-timing/nav2-test-navigate-iframe.html](https://github.com/web-platform-tests/wpt/blob/master/navigation-timing/nav2-test-navigate-iframe.html).
- [x] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Not needed, see above.
- [x] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: not needed.
- [x] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use.

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

### :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, 10:02 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%2Fwhatwg%2Ffetch%2F5c5879358bab088496f7b46529558499d6eb3e88%2Ffetch.bs&force=1&md-status=LS-PR&md-Text-Macro=PR-NUMBER%201975)

**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%231975.)._

</details>

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

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

-- Commit Summary --

  * Set full timing info for all navigation requests

-- File Changes --

    M fetch.bs (8)

-- Patch Links --

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

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

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

Received on Thursday, 19 November 2026 10:02:59 UTC