Page MenuHomePhabricator

VisualEditor: [Regression] Viewport sometimes scrolls to bottom when loading some pages in Chrome
Closed, ResolvedPublic

Description

If I open https://en.wikipedia.org/wiki/James_Braid_(surgeon)?veaction=edit in Chrome 38, the viewport initially jumps to the bottom of the page (the references list). If I press a cursor key, I'm back at the top. If I reload the page, the problem is not reproducible. Cannot reproduce in Firefox either.


Version: unspecified
Severity: normal

Details

Reference
bz73208

Event Timeline

Chrome remembers a scroll position on the page - if a a content at the bottom of the page was viewed/edited, and Back/Forward buttons then were used, loading the same page again will display the last scroll position.

So far, I could not see that anything was stored in cookies.

Note that I am able to reproduce the incorrect scroll position in Chrome in a private browser window.

gerritadmin wrote:

Change 172983 had a related patch set uploaded by Esanders:
Initialize context's $element as hidden

https://gerrit.wikimedia.org/r/172983

gerritadmin wrote:

Change 172983 merged by jenkins-bot:
Initialize context's $element as hidden

https://gerrit.wikimedia.org/r/172983