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

Issue 364193002: Cursor does not blink on longpress in an emptyField. (Closed)

Created:
6 years, 5 months ago by Sunil Ratnu
Modified:
6 years ago
Reviewers:
tkent, Inactive
CC:
blink-reviews, blink-reviews-events_chromium.org, dglazkov+blink, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Cursor does not blink on longpress in an emptyField. When we long press on any input field containing any text, sendContextMenuEventForGesture gets called and context menu is displayed providing us the options to cut, copy, paste etc. But when we long press on any empty field, the caret blinking gets suspended and even after typing some text, the cursor remains in suspended state and unless we tap on the input field, it's not set back to false. So, in case of longpress scenario, it was never set back to false and due to this cursor does not blink for any operations which is done after longpress. So, we handle the case now and setCaretBlinkingSuspended to false when context menu event is sent. BUG=386331 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178735

Patch Set 1 : Initial Patch #

Total comments: 2

Patch Set 2 : Correction in comment: s/mourse/caret #

Patch Set 3 : Unit Test case added #

Patch Set 4 : Fix Test Case build error #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M Source/core/page/EventHandler.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 3 4 2 chunks +24 lines, -0 lines 0 comments Download
A Source/web/tests/data/blink_caret_on_typing_after_long_press.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Sunil Ratnu
Please take a look.
6 years, 5 months ago (2014-07-03 10:26:57 UTC) #1
tkent
> But when we long press on any empty field, the caret blinking gets suspended ...
6 years, 5 months ago (2014-07-04 03:08:04 UTC) #2
Inactive
https://codereview.chromium.org/364193002/diff/1/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/364193002/diff/1/Source/core/page/EventHandler.cpp#newcode2641 Source/core/page/EventHandler.cpp:2641: // Clear caret blinking suspended state to make sure ...
6 years, 5 months ago (2014-07-15 16:02:47 UTC) #3
Sunil Ratnu
Thanks Chris and tkent for the review. Sorry for the delay in reply. @tkent: The ...
6 years, 5 months ago (2014-07-15 17:10:56 UTC) #4
tkent
ok, I understand. Please add a unit test.
6 years, 5 months ago (2014-07-16 07:48:11 UTC) #5
Sunil Ratnu
On 2014/07/16 07:48:11, tkent wrote: > ok, I understand. > > Please add a unit ...
6 years, 5 months ago (2014-07-21 12:28:09 UTC) #6
tkent
lgtm
6 years, 5 months ago (2014-07-22 01:37:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sunil.ratnu@samsung.com/364193002/40001
6 years, 5 months ago (2014-07-22 01:38:11 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_blink_compile_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-22 02:31:43 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-22 02:51:23 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_dbg/builds/6870) android_blink_compile_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_rel/builds/6878)
6 years, 5 months ago (2014-07-22 02:51:24 UTC) #11
Sunil Ratnu
On 2014/07/22 02:51:24, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 5 months ago (2014-07-22 10:42:28 UTC) #12
tkent
lgtm
6 years, 5 months ago (2014-07-22 23:30:10 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 5 months ago (2014-07-23 03:20:26 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-23 04:57:50 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/31180)
6 years, 5 months ago (2014-07-23 04:57:51 UTC) #16
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 5 months ago (2014-07-23 04:59:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sunil.ratnu@samsung.com/364193002/80001
6 years, 5 months ago (2014-07-23 05:00:00 UTC) #18
commit-bot: I haz the power
6 years, 5 months ago (2014-07-23 05:46:59 UTC) #19
Message was sent while issue was closed.
Change committed as 178735

Powered by Google App Engine
This is Rietveld 408576698