Closed Bug 1928744 Opened 10 months ago Closed 9 months ago

[wpt-sync] Sync PR 48936 - Allow new gesture scroll during snap animation

Categories

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

task

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

David Awogbemila <awogbemila@chromium.org> wrote:

Allow new gesture scroll during snap animation

This patch fixes the issue in the linked bug by having InputHandler
de-latch at the start of a snap animation rather than at the end.
This allows a new gesture to latch onto a different scroll node
while the previous scroll node's snap animation is in progress.

In the unit test TrackAnimatingSnapTargetIds, a ScrollBegin call is
added to eschew violating the last_latched_scroll_type_ DCHECK[1] in
InputHandler::ScrollLatchedScroller.

[1] https://source.chromium.org/chromium/chromium/src/+/89812f5b31e3f078d2b0fa9c32904e7424c87cd9:cc/input/input_handler.cc;l=1786

Bug: 333708040
Change-Id: I7571a09644433ebea051a994935a987fdb25e704
Reviewed-on: https://chromium-review.googlesource.com/5826968
WPT-Export-Revision: 96475343b9bbbcef25276d256f99406adf7db310

Component: web-platform-tests → Layout: Scrolling and Overflow
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 2 subtests

Status Summary

Firefox

TIMEOUT: 2
NOTRUN : 1

Chrome

TIMEOUT: 2
NOTRUN : 1

Safari

TIMEOUT: 2
NOTRUN : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/css-scroll-snap/unrelated-gesture-scroll-during-snap.html [wpt.fyi]: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
    • gesture on separate scroll container works while another container snaps: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
    • gesture on separate snap container works while another container snaps: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/92a3b7192503 [wpt PR 48936] - Allow new gesture scroll during snap animation, a=testonly https://hg.mozilla.org/integration/autoland/rev/797c3b75b859 [wpt PR 48936] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
You need to log in before you can comment on or make changes to this bug.