by Mithaldu · 10y ago · 0 comments
1. Disable the behavior.
2. Let it remain, do nothing else.
Meanwhile the actual problem is being ignored completely, which is: Form contents are discarded on history traversal,
even at reasonable depth.
The correct solution is to do what other browsers have successfully implemented already: 3. Retain form contents on history traversal.
That way people who accidentally go back, can go forward again and keep all their input.Imagine a website with a support chat generated by js extending from the side. Would you expect going forward/back to this page to restore your chat state? I can come up with a number of reasons for yes and for no. But the best option in this case is: make accidentally going away from that chat session very hard.
There's numerous things that can go wrong, here's two common ones:
1) The page you are going back to is a login prompt, which immediately redirects you, overwriting your "forward" state.
2) Javascript. Everything can happen. Everything will happen. Your worst nightmares will come true.
You'd think they do, but they don't, at least not all of them. The problem isn't the properly designed webapps, it's the improperly designed ones. That's what you somehow don't understand/recognize.
Also, the problem with the redirect happens on a certain popular bulletin board software that works without Javascript (and therefore doesn't provide such a prompt in the first place).