Skip to content

Navigation API: Save the persisted state before same-document reload#12643

Open
noamr wants to merge 1 commit into
mainfrom
noamr/nav-reload-focus
Open

Navigation API: Save the persisted state before same-document reload#12643
noamr wants to merge 1 commit into
mainfrom
noamr/nav-reload-focus

Conversation

@noamr

@noamr noamr commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Closes web-platform-tests/wpt#60113

This reflects current chromium/webkit behavior.

  • At least two implementers are interested (and none opposed):
    • Chromium
    • Assuming WebKit because it's already implemented
  • Tests are written and can be reviewed and commented upon at: https://wpt.fyi/results/navigation-api/scroll-behavior (see tests currently failing only in Firefox)
  • Implementation bugs are filed:
    • Chromium: Works
    • Gecko: …
    • WebKit: Works
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
  • The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/nav-history-apis.html ( diff )

@noamr

noamr commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@farre

@annevk annevk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay editorially.

For OP, if Deno/Node are not applicable, just remove those bullet points.

@farre

farre commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

If we're OK with doing it only for intercepted navigations, then this fits the bill. I'm OK with this, since that keeps the implementation scope down a fair bit.

@noamr

noamr commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

If we're OK with doing it only for intercepted navigations, then this fits the bill. I'm OK with this, since that keeps the implementation scope down a fair bit.

At the very least that's what the tests cover? Correct me if I am wrong?

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

Development

Successfully merging this pull request may close these issues.

Navigation API scroll tests incorrectly assume that reloads will persist state

3 participants