fast/scrolling/mac/scroll-snapping-in-progress.html This test has been a flaky failure on macOS wk2 since it was introduced on r263485. History: https://results.webkit.org/?suite=layout-tests&test=fast%2Fscrolling%2Fmac%2Fscroll-snapping-in-progress.html Diff: Sending wheel events PASS container.scrollTop > 0 is true -PASS window.internals.isScrollSnapInProgress(container) is true +FAIL window.internals.isScrollSnapInProgress(container) should be true. Was false. PASS successfullyParsed is true +Some tests failed. TEST COMPLETE
<rdar://problem/64948258>
I can reproduce.
Doesn't reproduce when I turn on logging.
When it flakes, we send the scroll event earlier, so we haven't started the scroll snap timer in ScrollController yet.
Seem to relate to whether we handle the two wheel events in the same commit, or different commits.
I don't see a way to make a non-flakey version of this test with the APIs we have. I can't wait for scrolling completion, because scroll snap is something that delays completion. I can't control when scroll events fire relative to wheel events, and I can't use wheel handlers in the test because that sends us down the slow-scrolling path.
Created attachment 404448 [details] Patch
Comment on attachment 404448 [details] Patch Clearing flags on attachment: 404448 Committed r264460: <https://trac.webkit.org/changeset/264460>