Bug 209299

Summary: REGRESSION (r258679): [ Mac ] fast/scrolling/arrow-key-scroll-in-rtl-document.html is failing and timing out
Product: WebKit Reporter: Truitt Savell <tsavell>
Component: ScrollingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarcelo, dbates, ddkilzer, ews-watchlist, fred.wang, jamesr, luiz, simon.fraser, tonikitoo, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=209427
Attachments:
Description Flags
Patch none

Description Truitt Savell 2020-03-19 12:43:43 PDT
fast/scrolling/arrow-key-scroll-in-rtl-document.html

This test became a frequent flaky failure and timeout after the changes in https://trac.webkit.org/changeset/258679/webkit

I am able to reproduce this issue on 258679 but not 258678 using command:
run-webkit-tests --iterations 2000 --exit-after-n-failures 1 --exit-after-n-crashes-or-timeouts 1 --debug-rwt-logging --no-retry --force --no-build -f  fast/scrolling/arrow-key-scroll-in-rtl-document.html

History:
https://results.webkit.org/?suite=layout-tests&test=fast%2Fscrolling%2Farrow-key-scroll-in-rtl-document.html

Diff:
--- /Volumes/Data/slave/catalina-release-tests-wk2/build/layout-test-results/fast/scrolling/arrow-key-scroll-in-rtl-document-expected.txt
+++ /Volumes/Data/slave/catalina-release-tests-wk2/build/layout-test-results/fast/scrolling/arrow-key-scroll-in-rtl-document-actual.txt
@@ -1 +1 @@
-PASS: scrollLeft is -120
+FAIL: scrollLeft is 0, expected -120
Comment 1 Radar WebKit Bug Importer 2020-03-19 12:44:01 PDT
<rdar://problem/60646111>
Comment 2 Simon Fraser (smfr) 2020-03-20 09:25:41 PDT
I can reproduce.
Comment 3 Simon Fraser (smfr) 2020-03-20 18:10:55 PDT
We don't have WheelEventTestMonitor reasons for the key-scrolling behavior, which is that WebEditorClient::handleKeyboardEvent()calls down into WebPage::scroll() which ends up in FrameView::requestScrollPositionUpdate() and bounces to the scrolling thread, and then back to the main thread.
Comment 4 Simon Fraser (smfr) 2020-03-20 19:12:47 PDT
Created attachment 394154 [details]
Patch
Comment 5 EWS 2020-03-20 22:54:57 PDT
Committed r258805: <https://trac.webkit.org/changeset/258805>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 394154 [details].