Mochitests Are Unable to Read Realtime Scroll Position with APZ enabled
Categories
(Core :: Layout, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: kip, Assigned: kats)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Reporter | ||
Comment 1•10 years ago
|
||
Reporter | ||
Updated•10 years ago
|
Comment 2•10 years ago
|
||
Assignee | ||
Comment 3•10 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
This test is still broken with APZ enabled, and is basically not running because of the early-exit condition. I'll try and take a look at it.
Comment 5•6 years ago
|
||
To clarify, is "this test" layout/generic/test/test_scroll_behavior.html?
Assignee | ||
Comment 6•6 years ago
|
||
Yeah, sorry I didn't realize this bug didn't actually refer to the test.
Assignee | ||
Comment 7•6 years ago
•
|
||
Replacing the waitForAllPaintsFlushed
calls with waitForApzFlushedRepaints
gets us most of the way there. It passes for me locally, and the try push just shows some intermittent failures on Linux. I'll try and debug that a bit.
Assignee | ||
Comment 8•6 years ago
•
|
||
Ah, when we start a smooth scroll animation the mLastSampleTime
is initialized to TimeStamp::Now()
here instead of using the test sample time in the CompositorBridgeParent. So in some cases the time delta of the animation's first sampling is shorter than what the test expects it to be.
Assignee | ||
Comment 9•6 years ago
|
||
Indeed, that's looking better: https://treeherder.mozilla.org/#/jobs?repo=try&group_state=expanded&revision=f1694e770a77c7f9efc381b614c3a56a9ce50b97
Assignee | ||
Comment 10•6 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
The test itself is reasonable, except that it reads scroll positions
from the main thread. With APZ enabled we need to flush any pending APZ
repaints before reading these scroll positions. So changing the
waitForAllPaints to the APZ-flushing variant makes that happen, and the
test passes.
Depends on D29921
Assignee | ||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/dc4761caa7d4
https://hg.mozilla.org/mozilla-central/rev/c705a64ce83c
Description
•