handle FF 27 history state undefined