balupton/history.js — Issue #110: Leaving the page, then hitting back restores a weird state (Safari 5.1)
Author: minaguib
Created: 2011-10-08 02:53:44+00:00
State: open

For example, go to:

http://mina.naguib.ca/test/history.html

Click on link 1, then 2, then 3 - everything works as expected

Then click on link 4, enjoy zombo.com, then hit BACK.

You'd expect to go back to the URL and visual state C. The URL indeed is state=C, but the visual belongs to the initial state.

furthermore, hitting back a few times steps correctly through states B then A, but the initial state is never properly visually reached.

Another example of this / a similar bug is actually seen on balupton's site:
1. Visit http://balupton.com/
2. Click on one of the posts (URL and content changes)
3. In the URL bar go to a different site, say, zombo.com
4. Now hit back - you expect the URL and content for the post: OK
5. Now hit back again - you expect the URL and main homepage - NOT OK - URL changes but content remains that of the post.