Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable browser history API on file:/ URLs
history.pushState is defined, but not working whenever document.origin is "null" (literally that string, not just the null object). This is due to some security considerations and is unlikely to be ever working. For now just disable the usage of the history API when the documentation is accessed through a file:/ URL. See https://code.google.com/p/chromium/issues/detail?id=301210 for a Chrome-specific issue on the history API on file:/ URLs Closes rust-lang#25953
- Loading branch information