Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(628)

Issue 2681803002: blink: clear tooltips on frame leaves (Closed)

Created:
3 years, 10 months ago by Elly Fong-Jones
Modified:
3 years, 10 months ago
Reviewers:
bokan, dtapuska, eae
CC:
chromium-reviews, blink-reviews, dtapuska+blinkwatch_chromium.org, Navid Zolghadr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

blink: clear tooltips on frame leaves If the mouse exits a frame fast enough, EventHandler can receive a MouseLeave event without any intervening MouseMoved events. In this case, if there was a tooltip for a previously hovered tooltip, the tooltip does not get dismissed, which can cause it to draw over other apps or windows. The solution is to dismiss any active tooltip for a frame when the mouse leaves that frame. BUG=592085 Review-Url: https://codereview.chromium.org/2681803002 Cr-Commit-Position: refs/heads/master@{#452130} Committed: https://chromium.googlesource.com/chromium/src/+/a741cc8edf82ff1bf0850f9f8756419d6eaf60d0

Patch Set 1 #

Total comments: 2

Patch Set 2 : move clearToolTip call #

Patch Set 3 : add unit test #

Total comments: 1

Patch Set 4 : rebase and nullptr -> WTF::String #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -2 lines) Patch
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandlerTest.cpp View 1 2 3 4 chunks +62 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
Elly Fong-Jones
eae: ptal? :)
3 years, 10 months ago (2017-02-07 15:05:56 UTC) #3
eae
Looks reasonable to me but I'm not very familiar with this code. dtapuska or bokan ...
3 years, 10 months ago (2017-02-07 17:45:06 UTC) #4
eae
3 years, 10 months ago (2017-02-07 17:45:33 UTC) #6
bokan
Can we get a test? Also, in the bug it seems like this can happen ...
3 years, 10 months ago (2017-02-07 22:36:26 UTC) #7
Elly Fong-Jones
On 2017/02/07 22:36:26, bokan wrote: > Can we get a test? Okay, but I think ...
3 years, 10 months ago (2017-02-09 19:20:46 UTC) #8
Elly Fong-Jones
https://codereview.chromium.org/2681803002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2681803002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode766 third_party/WebKit/Source/core/input/EventHandler.cpp:766: page->chromeClient().mouseDidLeave(*m_frame); On 2017/02/07 22:36:25, bokan wrote: > just call ...
3 years, 10 months ago (2017-02-09 19:21:19 UTC) #9
bokan
On 2017/02/09 19:20:46, Elly Fong-Jones wrote: > On 2017/02/07 22:36:26, bokan wrote: > > Can ...
3 years, 10 months ago (2017-02-10 00:32:51 UTC) #10
bokan
3 years, 10 months ago (2017-02-10 00:32:59 UTC) #11
Elly Fong-Jones
On 2017/02/10 00:32:59, bokan (OOO until Feb 21) wrote: unit test added, ptal :)
3 years, 10 months ago (2017-02-13 14:42:43 UTC) #12
bokan
Sorry about delay, was OOO. lgtm % comment. https://codereview.chromium.org/2681803002/diff/40001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp File third_party/WebKit/Source/core/input/EventHandlerTest.cpp (right): https://codereview.chromium.org/2681803002/diff/40001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp#newcode475 third_party/WebKit/Source/core/input/EventHandlerTest.cpp:475: EXPECT_EQ(nullptr, ...
3 years, 10 months ago (2017-02-21 19:15:43 UTC) #13
Elly Fong-Jones
On 2017/02/21 19:15:43, bokan wrote: > Sorry about delay, was OOO. > > lgtm % ...
3 years, 10 months ago (2017-02-22 16:06:34 UTC) #14
bokan
On 2017/02/22 16:06:34, Elly Fong-Jones wrote: > On 2017/02/21 19:15:43, bokan wrote: > > Sorry ...
3 years, 10 months ago (2017-02-22 16:23:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2681803002/60001
3 years, 10 months ago (2017-02-22 16:33:05 UTC) #18
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 18:14:25 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/a741cc8edf82ff1bf0850f9f8756...

Powered by Google App Engine
This is Rietveld 408576698