Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation search no longer works in Chrome Canary when accessing local documentation #25953

Closed
shepmaster opened this issue Jun 2, 2015 · 1 comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@shepmaster
Copy link
Member

The console reports this error:

Uncaught SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'file:///Users/me/Projects/rust/doc/std/index.html?search=hello' cannot be created in a document with origin 'null'.search @ main.js:578

This is the line of JS in question.

I recognize that I'm using a beta browser version, and that the team may not wish to support these browsers. However, it's easy for me to report it, just in case it becomes a problem with the next released version!

Meta

  • Chrome Version 45.0.2454.85 (64-bit)
  • OS X
  • rustc 1.2.0
@huonw huonw added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jun 2, 2015
@ujh
Copy link

ujh commented Sep 14, 2015

It's broken for me, too. I'm using Chrome 45.0.2454.85 (not Chrome canary). Also Mac OSX and rustc 1.4.0-nightly (fd230ff12 2015-09-13).

badboy added a commit to badboy/rust that referenced this issue Sep 14, 2015
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
steveklabnik added a commit to steveklabnik/rust that referenced this issue Sep 19, 2015
…ile, r=steveklabnik

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants