#662511 - localStorage.key() gets out-of-sync when localStorage is updated in a separate window
Firefox 4.0 doesn't update localStorage keys when a value is stored in another window.
To work around this, simply access localStorage.length and the keys will update.
This works properly in earlier versions of Firefox.