[wpt-sync] Sync PR 39954 - Remove step_timeout workaround when waiting for scroll coordinates to update
Categories
(Core :: Layout: Scrolling and Overflow, task, P4)
Tracking
()
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 afocus()
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 thescroll
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)
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
Comment 4•2 years ago
|
||
bugherder |
Description
•