-
Notifications
You must be signed in to change notification settings - Fork 514
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
Pages do not scroll to element when opened in Chrome background tab #7168
Comments
@schalkneethling Could you transfer this to Yari? I had been constantly running into this as well. I think this has something to do with hydration (as always...) |
Hi @jordanbtucker, thank you for filing an issue. The problem described here is not related to a content change but is something that needs to be addressed by engineering. We file engineering-related issues on the Yari repository. As such, the issue will move over to Yari. |
I was able to reproduce this issue in Chrome. In Firefox, the scroll happens as soon as I focus tab. |
I have 2 additions to this bug. 1: Bug is also reproducible in Foreground-Tabs (Open URL in Adressbar directly), e.g. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Assignment#syntax 2: On some pages the bug is reproducible and not on others (Regarding Foreground-Tabs): Reproduced on: |
@jordanbtucker It looks like this issue is resolved, and Chrome scrolls even if the tab was opened in the background. So I'm going ahead and mark this as resolved.
@i0air The issue you're describing is different, and isn't new, but indeed it can be observed more often with the new Remember language feature. We currently have no way of redirecting an English section anchor to the corresponding translated section anchor. We have recently discussed possible solutions internally, but haven't decided yet. |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer#examples
What specific section or headline is this issue about?
All headlines on all pages
What information was incorrect, unhelpful, or incomplete?
When a URL with a hash containing an element ID is opened in a background tab in Chrome, the page does not scroll to the element with that ID when the tab is brought to the foreground. When the same URL is opened in a foreground tab, the page scrolls correctly.
Steps to reproduce:
It appears that MDN is using a custom smooth-scrolling feature that does work when a tab is opened in the background. That feature should detect background tabs and possibly wait for the user to open the tab before scrolling.
What did you expect to see?
Pages should scroll to the correct section even when opened in a background tab.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
The text was updated successfully, but these errors were encountered: