Closed Bug 1832482 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 39954 - Remove step_timeout workaround when waiting for scroll coordinates to update

Categories

(Core :: Layout: Scrolling and Overflow, task, P4)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 39954 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/39954
Details from upstream follow.

Tim Nguyen <nt1m@users.noreply.github.com> wrote:

Remove step_timeout workaround when waiting for scroll coordinates to update

The pattern addEventListener("scroll", () => step_timeout(resolve, 0)) was used for waiting for scroll coordinates to update after a scroll was performed as the result of a focus() call. step_timeout(resolve, 0) was notably needed because WebKit had a bug where the scroll coordinates (e.g. scrollTop) wouldn't update at the time the scroll event was emitted.

However that bug looks fixed in recent WebKit builds, so this workaround can be removed, and we can use the following instead:

addEventListener("scroll", resolve)

Component: web-platform-tests → Layout: Scrolling and Overflow
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e184c11621a6 [wpt PR 39954] - Remove step_timeout workaround when waiting for scroll coordinates to update, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.