This line contained a typo (first parenthesis should close right after 'saved_history').
But then this would be quite contra-productive if the browser crashes right after restoring the data (before uploading or another change).
So, I simply dropped it.