Chrome, browser history, bugginess
This means that while using a complex AJAX/DHTML webapp like Gmail in Chrome, sometimes pressing the “back” button will skip pages, possibly even navigating back to the page you were on before you loaded the webapp, causing you to completely lose your state.
For example, when Gmail is loaded from a
window.history.go(-1); can be called.
In Chrome, as a direct result of this bug, sometimes no “Inbox” history entry corresponding to the
As I’ve said, this bug is elusive. Sometimes you see it, sometimes you don’t. I’ve encountered it on multiple machines, and have even created a very basic Back Button Test page so you can see it for yourself. I have also added a comment into what seems to be the official Chromium issue, 1016 for this bug, linking back to my test page.
If you have any findings, comments, or suggestions.. please post them here, thanks! And check back in a few days for my new plugin, jQuery BBQ: Back Button & Query Library. I’m still writing unit tests for it over at GitHub, but I’ll be done soon!
Note: It’s common knowledge that IE6 and IE7 don’t add history entries when document.location.hash is changed, but everything else does.. or should!