[Firefox] Workaround for sessionStorage error when the prefenence network.cookie.lifetimePolicy is set to 1 (bug 1000777)