-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
history.state when going back to bfcached page #6652
Labels
Comments
@domenic - I imagine you'll want |
Well in app history every time you call |
8 tasks
domenic
added a commit
to web-platform-tests/wpt
that referenced
this issue
Oct 10, 2022
…bfcache navigation See whatwg/html#6652.
domenic
added a commit
to web-platform-tests/wpt
that referenced
this issue
Oct 10, 2022
Per whatwg/html#6652, it must not get serialized and deserialized.
domenic
added a commit
to web-platform-tests/wpt
that referenced
this issue
Oct 11, 2022
Per whatwg/html#6652, it must not get serialized and deserialized.
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this issue
Oct 21, 2022
…, a=testonly Automatic update from web-platform-tests history.state during a bfcache traversal Per whatwg/html#6652, it must not get serialized and deserialized. -- wpt-commits: 7d60342ce41a95f4db1e57dd324917a9bc8bf730 wpt-pr: 36368
jamienicol
pushed a commit
to jamienicol/gecko
that referenced
this issue
Oct 26, 2022
…, a=testonly Automatic update from web-platform-tests history.state during a bfcache traversal Per whatwg/html#6652, it must not get serialized and deserialized. -- wpt-commits: 7d60342ce41a95f4db1e57dd324917a9bc8bf730 wpt-pr: 36368
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
https://example.com/
.history.replaceState({foo: 'bar'}, '', '');
.window.tmp = history.state;
.https://jakearchibald.com
.window.tmp === history.state
.According to the spec, I'd expect the above to be
false
, but it'strue
in Firefox, Safari, and Chrome (with bfcache forced).Browser behaviour seems reasonable to me, so I'll fix it in #6315.
The text was updated successfully, but these errors were encountered: