window.history support test fixed, fixes #320