Page MenuHomePhabricator

Wikipedia scrolls articles to top after closing image overlays in latest Chromium
Closed, DuplicatePublic

Description

https://bugs.chromium.org/p/chromium/issues/detail?id=1205285#c4

  1. Launch the browser
  2. Navigate to : "https://en.wikipedia.org/wiki/Sikhs"
  3. scroll down and open image
  4. Observe that page scrolls to the starting/top of the page on closing image.

Actual Result:

Observe that page scrolls to the starting/top of the page on closing image.

Expected Result:

Page Should not scrolls to the starting/top of the page on closing image.

Root cause: Wikipedia issues a setTimeout call with a 0ms delay. Chromium previously turned this into a 1ms delay which allowed the proper restoration of the scroll position. The 0ms value is no longer clamped to 1ms.