Handle Firefox preserving JS state on soft-reloads.

https://bugzilla.mozilla.org/show_bug.cgi?id=654072