Skip to content

rustdoc: Uncaught SecurityError when clearing search box #32307

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

Closed
crumblingstatue opened this issue Mar 17, 2016 · 0 comments
Closed

rustdoc: Uncaught SecurityError when clearing search box #32307

crumblingstatue opened this issue Mar 17, 2016 · 0 comments

Comments

@crumblingstatue
Copy link
Contributor

main.js:743 Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL
'file:///<...>/share/doc/rust/html/std/index.html?search=' cannot be created in a document with origin 'null' and URL 'file:///<...>/share/doc/rust/html/std/index.html'.

(anonymous function) @ main.js:743
n.event.dispatch @ jquery.js:3
r.handle @ jquery.js:3

Browser: Chromium 49.0.2623.87 on Linux

eddyb added a commit to eddyb/rust that referenced this issue Mar 19, 2016
Fix usability problem when browse document locally

You cannot use `history.replaceState` when you browse locally, it breaks the security policy of Chrome and perhaps other browsers.
Closes rust-lang#32307
Thank @crumblingstatue for the help!
critiqjo pushed a commit to critiqjo/rustdoc that referenced this issue Dec 16, 2016
Fix usability problem when browse document locally

You cannot use `history.replaceState` when you browse locally, it breaks the security policy of Chrome and perhaps other browsers.
Closes rust-lang/rust#32307
Thank @crumblingstatue for the help!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant