-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Re-enable history api on file:// protocol #57504
Conversation
As far as I can tell, it looks like |
Yes, we have to test more than just Chrome :)
…On Thu, Jan 10, 2019 at 6:32 PM ecstatic-morse ***@***.***> wrote:
Using history.pushState on a page loaded from file:// throws a
SecurityError in Firefox 64, so I don't think you should unconditionally
enable this.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#57504 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABsik8HNtKAhpsPt8w9pGZq-f8N8xb6ks5vB816gaJpZM4Z6fNb>
.
|
The problem was supposed to be only on chrome. My firefox worked correctly though. |
This seems to make it okay? I think we only use the history API when loading up the search results, so it may work out. |
Normally yes. |
I double-checked main.js to make sure we only used the history API (or at least, only this detection) when modifying the query string or hash of the URL, and not the file. Because of that, i'm okay merging this. @bors r+ rollup |
📌 Commit 830b3b8 has been approved by |
…=QuietMisdreavus Re-enable history api on file:// protocol Fixes rust-lang#57135. I tested locally on chrome (since it was the browser having issues with history management on `file://` protocol) and it worked fine so I guess we can re-enable it. r? @QuietMisdreavus
Rollup of 11 pull requests Successful merges: - #57504 (Re-enable history api on file:// protocol) - #57848 (Generate a documentation page for core::mem::transmute.) - #57884 (Update minifier version) - #57954 (rustdoc: remove blank unstable spans) - #58028 (Fix image link in the settings menu) - #58033 (rustdoc: wrap stability tags in colored spans) - #58086 ([rustdoc] Improve file list display) - #58143 (Sort elements in the sidebar) - #58146 (Prevent automatic collapse of methods impl blocks) - #58150 (Don't apply impl block collapse rules to trait impls) - #58185 (Remove images' url to make it work even without internet connection) Failed merges: r? @ghost
Fixes #57135.
I tested locally on chrome (since it was the browser having issues with history management on
file://
protocol) and it worked fine so I guess we can re-enable it.r? @QuietMisdreavus