maarteti/myplan — Issue #6: 39 - Safari 3/Mac (and probably other versions): History stack gets lost when user hits reload 
Author: maarteti
Created: 2011-11-23 11:30:48+00:00
State: open

If you reload your browser window in Safari 3/Mac, your history stack gets
lost. You still have entries in your browser history stack, but all of the
data within all of the hidden form fields disappears.

Not sure if this could be alleviated by targeting all of the Safari
2-related stuff just to Safari 2 and using the same methods as
Firefox/Opera for Safari 3. Also need to test whether this affects Safari 2
and Safari/Windows. This could just be an issue where Safari reloads
prevent the auto-caching of form data. If so, perhaps going back to native
DOM methods might help?

Surprising that nobody - including me - noticed this before.

This is incidental to the bug, but getSafariState should probably check to
make sure there's an object to parse before calling parseJSON..... In these
cases of a reload, where the form field has no values, tons of errors get
thrown by parseJSON as it tries to parse nonexistent data.

Original link: http://code.google.com/p/reallysimplehistory/issues/detail?id=39