Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REGRESSION (macOS 13.3): Holding down-arrow beeps while scrolling before reaching end of document in WKWebView #12447

Merged
merged 1 commit into from Apr 8, 2023

Conversation

rr-codes
Copy link
Contributor

@rr-codes rr-codes commented Apr 6, 2023

77d05a5

REGRESSION (macOS 13.3): Holding down-arrow beeps while scrolling before reaching end of document in WKWebView
https://bugs.webkit.org/show_bug.cgi?id=255039
rdar://107667589

Reviewed by Aditya Keerthi.

This was happening because the keyboard event is considered "unhandled" if the triggering key is
already held down.

This PR fixes this by simply correcting this behavior, since these events should actually be
considered "handled".

* Source/WebCore/platform/KeyboardScrollingAnimator.cpp:
(WebCore::KeyboardScrollingAnimator::beginKeyboardScrollGesture):
* Tools/TestWebKitAPI/Tests/mac/KeyboardEventTests.mm:
(-[NSViewWithKeyDownOverride keyDown:]):
(TestWebKitAPI::arrowKeyDownWithKeyRepeat):
(TestWebKitAPI::TEST):

Canonical link: https://commits.webkit.org/262743@main

2a9f25b

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac   πŸ›  wpe βœ… πŸ›  wincairo
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug   πŸ§ͺ wpe-wk2
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac βœ… πŸ›  gtk
  πŸ§ͺ ios-wk2-wpt βœ… πŸ§ͺ mac-wk1 βœ… πŸ§ͺ gtk-wk2
βœ… πŸ›  tv βœ… πŸ§ͺ api-ios βœ… πŸ§ͺ api-gtk
βœ… πŸ§ͺ mac-wk2 βœ… πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-wk2-stress
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch
βœ… πŸ›  watch-sim

@rr-codes rr-codes self-assigned this Apr 6, 2023
@rr-codes rr-codes added the Scrolling Bugs related to main thread and off-main thread scrolling label Apr 6, 2023
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Apr 6, 2023
@rr-codes rr-codes removed the merging-blocked Applied to prevent a change from being merged label Apr 7, 2023
@rr-codes rr-codes requested a review from pxlcoder April 7, 2023 21:26
Tools/TestWebKitAPI/Tests/mac/KeyboardEventTests.mm Outdated Show resolved Hide resolved
Tools/TestWebKitAPI/Tests/mac/KeyboardEventTests.mm Outdated Show resolved Hide resolved
@rr-codes rr-codes added the merge-queue Applied to send a pull request to merge-queue label Apr 8, 2023
…ore reaching end of document in WKWebView

https://bugs.webkit.org/show_bug.cgi?id=255039
rdar://107667589

Reviewed by Aditya Keerthi.

This was happening because the keyboard event is considered "unhandled" if the triggering key is
already held down.

This PR fixes this by simply correcting this behavior, since these events should actually be
considered "handled".

* Source/WebCore/platform/KeyboardScrollingAnimator.cpp:
(WebCore::KeyboardScrollingAnimator::beginKeyboardScrollGesture):
* Tools/TestWebKitAPI/Tests/mac/KeyboardEventTests.mm:
(-[NSViewWithKeyDownOverride keyDown:]):
(TestWebKitAPI::arrowKeyDownWithKeyRepeat):
(TestWebKitAPI::TEST):

Canonical link: https://commits.webkit.org/262743@main
@webkit-commit-queue
Copy link
Collaborator

Committed 262743@main (77d05a5): https://commits.webkit.org/262743@main

Reviewed commits have been landed. Closing PR #12447 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 77d05a5 into WebKit:main Apr 8, 2023
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scrolling Bugs related to main thread and off-main thread scrolling
Projects
None yet
5 participants