forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix noisy event modifiers when UI events are converted to Blink events
Certain mouse-input devices are known to send mouse events whose modifiers don't always match the state implied by the changed (pressed/released) buttons. While the bad modifiers are not exposed to JS event's button/buttons fields, internal Blink plumbing may behave erratically with this state. This CL: - adds a fix where Blink WebInputEvents are first created from UI events (for events seen in production), and - completes an existing fix "in the middle" of Blink event path (for events injected in testing). Fixed: 378451943 Bug: 40851596 Change-Id: I0d7a496d0ab76089d68b653daaebd41dfae11fc9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6049401 Reviewed-by: Robert Flack <flackr@chromium.org> Commit-Queue: Dave Tapuska <dtapuska@chromium.org> Auto-Submit: Mustaq Ahmed <mustaq@chromium.org> Reviewed-by: Dave Tapuska <dtapuska@chromium.org> Cr-Commit-Position: refs/heads/main@{#1391250}
- Loading branch information
1 parent
ade1cef
commit 1213893
Showing
6 changed files
with
194 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters