Skip to content

Cross-origin redirect and Navigation Timing / Resource Timing #1396

Open

Description

@yoavweiss

Description

Navigation Timing #160 outlines a huge interoperability gap in the way cross-origin redirects are handled across different browser engines.

It seems critical to fix that as well as make sure that related WPTs are passing across the board.

Specification

Navigation Timing, Resource Timing, Fetch, HTML

web-feature

No response

Test Links

Below is AI output of existing interoperability gaps related to this.

WPT results below are from the latest aligned runs as of 2026-09-14:
experimental = Chrome 155 / Firefox 158 / STP 252 (c1fc85d610),
stable = Chrome 153 / Firefox 155 / Safari 26.6 (9db4b48c1f).

Navigation Timing

  • navigation-timing/redirect-tao.html — Chrome 6/6 · Firefox 3/6 · Safari 3/6 stable → 6/6
    STP

    TAO-gated exposure of redirect timing on cross-origin navigation redirects (whatwg/fetch#1931, whatwg/html#12513). The
    same three subtests fail in Gecko and stable WebKit, all with assert_equals: redirectCount expected 1 but got 0:

    • Exposed when a cross-origin redirect opts in to the destination origin
    • Exposed when a cross-origin redirect opts in with a wildcard
    • Exposed when every redirect in the chain opts in to the destination origin

    The three negative subtests (Hidden when…) pass in every engine, so both engines implement blanket hiding and ignore the opt-in. WebKit appears to have fixed this between 26.6 and STP 252, leaving Gecko
    as the sole holdout
    .

Resource Timing

Adjacent failures (cross-origin redirect is only the setup)

These fail for reasons unrelated to redirect timing, but show up in the same test files:

Test coverage gaps

Not failures — tests that don't exist yet:

  1. No NavTiming equivalent of SO-XO-SO-redirect-chain-tao.https.html. Nothing tests a navigation redirect chain that goes cross-origin and returns to the initial origin.
  2. Nothing tests the navigationStart-as-timeOrigin inference described in w3c/navigation-timing#160. Every existing test asserts on
    redirectStart/redirectEnd/redirectCount directly — i.e. the channel that is protected — while the issue is about redirect timing being recoverable from timeOrigin regardless.

Passing everywhere (baseline, listed for completeness)

navigation-timing/nav2-test-redirect-xserver.html, nav2-test-redirect-chain-xserver-final-original-origin.html, nav2-test-redirect-chain-xserver-partial-opt-in.html, test-timing-xserver-redirect.html,
resource-timing/cross-origin-start-end-time-with-redirects.html, fetch-cross-origin-redirect.https.html, redirects.html.

Note the four xserver NavTiming tests only assert redirectCount === 0 / redirectStart === 0 for the non-opted-in case — they lock in the hiding behaviour, not the exposure, which is why they're green
while redirect-tao.html is not.

Additional Signals

No response

Activity

  1. github-actions commented on Sep 14, 2026

    @github-actions

    This comment was automatically generated based on the information you provided. Please don't edit it.

    No web features (from the web-features project) were found in your proposal. If your proposal doesn't correspond to a web feature, that is fine.
    Otherwise, please update your initial comment to include web-features: <feature-id>.
    To find feature IDs, use the web-features explorer.

  2. jgraham commented on Sep 14, 2026

    @jgraham
    Contributor

    (updated to put the AI output into a <details> element in line with the policy)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions