DescriptionDo not show a tooltip same as the previous one.
If a tooltip is closed by a keyboard event and the mouse cursor was
not moved, the same tooltip was shown again after some delay only on
Windows. Blink receives native mousemove events repeatedly on Windows
even if the mouse cursor is not moved.
ChromeClient saves the last tooltip string and the last mouse position, and
do not call virtual setToolTip() if they are not changed. This CL not only
fixes the bug, but also reduces unnecessary IPC messages for tooltip.
BUG=557660
TEST=automated
Review URL: https://codereview.chromium.org/1500813004
Cr-Commit-Position: refs/heads/master@{#363174}
(cherry picked from commit 91db68e8cb2080d1e9e07858efea3f7e198112a9)
Committed: https://chromium.googlesource.com/chromium/src/+/7d44e9fd49f70a1151ae6afb4a098c09f80fe265
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|