-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
Description
Unless I'm reading things wrong, https://html.spec.whatwg.org/multipage/browsing-the-web.html#traverse-the-history step 14 recreates the state object.
Test:
- Go to
https://example.com/. history.replaceState({foo: 'bar'}, '', '');.window.tmp = history.state;.- Navigate to
https://jakearchibald.com. - Press back.
window.tmp === history.state.
According to the spec, I'd expect the above to be false, but it's true in Firefox, Safari, and Chrome (with bfcache forced).
Browser behaviour seems reasonable to me, so I'll fix it in #6315.
annevk