Closed Bug 1562351 Opened 1 year ago Closed 1 year ago

Intermittent gfx/layers/apz/test/mochitest/test_group_mouseevents.html | helper_drag_root_scrollbar.html | Scrollbar drag resulted in a vertical scroll position of 27

Categories

(Core :: Panning and Zooming, defect, P5)

x86_64
Windows 10
defect

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- unaffected
firefox68 --- unaffected
firefox69 --- fixed
firefox70 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: kats)

References

(Regression)

Details

(Keywords: intermittent-failure, regression, Whiteboard: [stockwell disable-recommended])

Attachments

(1 file)

Filed by: nbeleuzu [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=254001555&repo=autoland
Full log: https://queue.taskcluster.net/v1/task/f0daeyl8T-qnzOu_P9gM9A/runs/0/artifacts/public/logs/live_backing.log
Reftest URL: https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://queue.taskcluster.net/v1/task/f0daeyl8T-qnzOu_P9gM9A/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1


21:45:09 INFO - Buffered messages logged at 21:45:09
21:45:09 INFO - must wait for load
21:45:09 INFO - TEST-PASS | gfx/layers/apz/test/mochitest/test_group_mouseevents.html | helper_drag_click.html | Clicked on button, yay! (at 16,25)
21:45:09 INFO - TEST-PASS | gfx/layers/apz/test/mochitest/test_group_mouseevents.html | helper_drag_click.html | x-coord of click event looks sane
21:45:09 INFO - TEST-PASS | gfx/layers/apz/test/mochitest/test_group_mouseevents.html | helper_drag_click.html | y-coord of click event looks sane
21:45:09 INFO - TEST-PASS | gfx/layers/apz/test/mochitest/test_group_mouseevents.html | Starting subtest helper_drag_root_scrollbar.html
21:45:09 INFO - Buffered messages finished
21:45:09 INFO - TEST-UNEXPECTED-FAIL | gfx/layers/apz/test/mochitest/test_group_mouseevents.html | helper_drag_root_scrollbar.html | Scrollbar drag resulted in a vertical scroll position of 27
21:45:09 INFO - SimpleTest.ok@SimpleTest/SimpleTest.js:275:18
21:45:09 INFO - spawnTest/w.ok@gfx/layers/apz/test/mochitest/apz_test_utils.js:324:32
21:45:09 INFO - test@gfx/layers/apz/test/mochitest/helper_drag_root_scrollbar.html:40:3
21:45:09 INFO - driveTest@gfx/layers/apz/test/mochitest/apz_test_utils.js:504:36
21:45:09 INFO - setTimeout handler*repaintDone@gfx/layers/apz/test/mochitest/apz_test_utils.js:174:7
21:45:09 INFO - TEST-PASS | gfx/layers/apz/test/mochitest/test_group_mouseevents.html | helper_drag_root_scrollbar.html | Scrollbar drag resulted in a horizontal scroll position of 0

OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64
Type: -- → defect

I think the problem with this test is that we wait for the first scroll event to fire here but that first scroll event is probably just the first of many that get generated with the drag. In particular, the first scroll event might come at y=27, and then we do the rest of the work and check the scroll position without waiting for the rest of the synthesized inputs to be delivered.

The numbers support this theory: per the comments in the test, 2% of 5000 is 100px, but we're actually scrolling in 4 increments of 5px, so we'd scroll ~25px per increment. The first scroll event arriving at around that mark seems consistent.

Pushed by bballo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/85416bd15938
Do the scrollbar drag in one shot to avoid intermittent failures. r=botond
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.