-
Notifications
You must be signed in to change notification settings - Fork 16
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
Specify bfcache behavior with proper tests #81
Comments
Yes, thank you! I think we're okay with the current Chrome behavior. |
@inexorabletash In my observation Chrome disables bfcache at the first lock request and never enables it again, is this something Google wants to enhance or does it actually enable bfcache again? |
I've reached out to our BFCache folks for an opinion. |
Per @rakina - ideally we'd only make pages disable bfcache when it is necessary, so we could consider pages that have released all locks to be eligible for bfcache again. So... might be a bug in Chrome (I haven't tested myself!). But let's not spec (or codify via WPT) an assumption that Chrome's current behavior is desired. |
Cool. Gecko also wants to enable bfcache again when eligible, and I'm planning to add tests for that. It seems bfcache tests are marked as optional (by using |
Yeah, it's not a bug in Chrome in the sense that it's perfectly fine to block BFCaching for any reason. It's not the situation we want long-term though, we just took the fastest path to correctness, knowing that we were over-blocking with a plan to come back and optimise. As for the test, yes, it should give @hiroshige-g who is also adding BFCache tests FYI. |
From #78 (comment)
It seems this also covers bfcache which should help us spec the behavior. |
Great. FYI There are also some docs about writing bfcache/navigation tests at
and some more test examples under codereview (they will be refactored before landing though): |
Another FYI, WPT now has some bfcache tests specifically for Web Locks, e.g. https://wpt.live/web-locks/bfcache/held.tentative.https.html |
It seems like we have a WPT already. Is there anything that needs to be updated on the spec side for this? BTW there's a guide on how to handle non-fully active documents (which includes BFCached documents). |
It currently says nothing about blocking bfcache, so maybe we should add some? It seems setting @annevk, is |
Yeah, you'd set salvageable to false during the unloading document cleanup steps. cc @domenic |
I intend to add a bfcache test where any active lock/request prevents caching, matching the current Chrome Dev 96 behavior.
Is this something you want to change or are you okay with the current Chrome behavior? To me it sounds reasonable enough, and in that case I think we should at least add a note about it, if it's not something can be specced.
The text was updated successfully, but these errors were encountered: