Closed Bug 1845650 Opened 2 years ago Closed 1 year ago

[wpt-sync] Sync PR 41200 - Add a workaround for smooth scroll operations.

Categories

(Core :: DOM: CSS Object Model, task, P4)

task

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Hiroyuki Ikezoe <hiroyuki.ikezoe@gmail.com> wrote:

Add a workaround for smooth scroll operations.

In Gecko there's a bug [1] that smooth scroll operations at the beginning of page loading are sometimes omitted. The bug is caused by a race condition in our architecture that smooth scroll operations are processed in a different process. Because of the bug the first test case in scroll-behavior-main-frame-{root|window}.html sometimes fails on Firefox. Just adding two awaiting rAFs avoids the race. And I believe it doesn't spoil the purpose of the test case itself.

Also I guess Blink has a similar race since the same test case fails [2] on Chrome. But I am not sure whether this workaround fixes the failure on Blink since I haven't been able to reproduce the Blink's failure locally.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1845646
[2] https://wpt.fyi/results/css/cssom-view/scroll-behavior-main-frame-window.html?label=experimental&label=master&product=chrome&product=firefox&product=safari&aligned&view=interop&q=label%3Ainterop-2022-scrolling

Component: web-platform-tests → DOM: CSS Object Model
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/343dfb1baa79 [wpt PR 41200] - Add a workaround for smooth scroll operations., a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
Blocks: 1841305
You need to log in before you can comment on or make changes to this bug.