Only enable the history API if we have access to it.