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

Issue 1566083002: Makes sure the keyboard typing isn't blocked when InputMethod::OnFocus() is not correctly called. (Closed)

Created:
4 years, 11 months ago by Shu Chen
Modified:
4 years, 11 months ago
Reviewers:
eroman, yukawa, sky
CC:
chromium-reviews, nona+watch_chromium.org, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Makes sure the keyboard typing isn't blocked when InputMethod::OnFocus() is not correctly called. BUG=569339, 505231 TEST=None Committed: https://crrev.com/d6b55d458f5d3ebeba2826520f14b4bf0e571396 Cr-Commit-Position: refs/heads/master@{#370340}

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : revert change in desktop_native_widget_aura.cc #

Patch Set 4 : introduce InputMethodLogCollector. #

Patch Set 5 : add logs. #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : more logs. #

Patch Set 9 : compiled. #

Total comments: 8

Patch Set 10 : addressed some comments. #

Patch Set 11 : use DumpWithoutCrashing(). #

Total comments: 14

Patch Set 12 : addressed eroman@'s comments. #

Patch Set 13 : #

Total comments: 8

Patch Set 14 : addressed eroman@'s comments. #

Patch Set 15 : rebased. #

Patch Set 16 : cCQ green. #

Patch Set 17 : CQ green. #

Total comments: 6

Patch Set 18 : addressed sky@'s comments. #

Patch Set 19 : compiled. #

Patch Set 20 : remote_input_method_win.cc is back. #

Patch Set 21 : remote_input_method_win.cc is gone again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -7 lines) Patch
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M ui/base/ime/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/ime/input_method.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M ui/base/ime/input_method_auralinux.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +13 lines, -0 lines 0 comments Download
M ui/base/ime/input_method_base.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M ui/base/ime/input_method_base.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -4 lines 0 comments Download
A ui/base/ime/input_method_log_collector.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +36 lines, -0 lines 0 comments Download
A ui/base/ime/input_method_log_collector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +56 lines, -0 lines 0 comments Download
M ui/base/ime/input_method_win.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +17 lines, -0 lines 0 comments Download
M ui/base/ime/mock_input_method.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M ui/base/ime/mock_input_method.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M ui/base/ime/ui_base_ime.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +15 lines, -2 lines 0 comments Download
M ui/views/win/hwnd_message_handler_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (23 generated)
Shu Chen
yukawa@ & sky@, can you please take a look? Thanks
4 years, 11 months ago (2016-01-07 07:43:29 UTC) #2
yukawa
lgtm https://codereview.chromium.org/1566083002/diff/20001/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc File ui/views/widget/desktop_aura/desktop_native_widget_aura.cc (right): https://codereview.chromium.org/1566083002/diff/20001/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc#newcode388 ui/views/widget/desktop_aura/desktop_native_widget_aura.cc:388: // Refreshes the focus info to IMF in ...
4 years, 11 months ago (2016-01-07 09:23:56 UTC) #3
yukawa
https://codereview.chromium.org/1566083002/diff/20001/ui/base/ime/input_method_win.cc File ui/base/ime/input_method_win.cc (right): https://codereview.chromium.org/1566083002/diff/20001/ui/base/ime/input_method_win.cc#newcode267 ui/base/ime/input_method_win.cc:267: "Char message got without the top-level window being activated."; ...
4 years, 11 months ago (2016-01-07 11:09:42 UTC) #4
sky
https://codereview.chromium.org/1566083002/diff/20001/ui/base/ime/input_method_auralinux.cc File ui/base/ime/input_method_auralinux.cc (right): https://codereview.chromium.org/1566083002/diff/20001/ui/base/ime/input_method_auralinux.cc#newcode51 ui/base/ime/input_method_auralinux.cc:51: "Key event got without the top-level window being activated."; ...
4 years, 11 months ago (2016-01-07 16:24:42 UTC) #5
Shu Chen
https://codereview.chromium.org/1566083002/diff/20001/ui/base/ime/input_method_auralinux.cc File ui/base/ime/input_method_auralinux.cc (right): https://codereview.chromium.org/1566083002/diff/20001/ui/base/ime/input_method_auralinux.cc#newcode51 ui/base/ime/input_method_auralinux.cc:51: "Key event got without the top-level window being activated."; ...
4 years, 11 months ago (2016-01-08 02:04:11 UTC) #6
yukawa
https://codereview.chromium.org/1566083002/diff/20001/ui/base/ime/input_method_auralinux.cc File ui/base/ime/input_method_auralinux.cc (right): https://codereview.chromium.org/1566083002/diff/20001/ui/base/ime/input_method_auralinux.cc#newcode51 ui/base/ime/input_method_auralinux.cc:51: "Key event got without the top-level window being activated."; ...
4 years, 11 months ago (2016-01-08 02:21:20 UTC) #7
Shu Chen
https://codereview.chromium.org/1566083002/diff/20001/ui/base/ime/input_method_win.cc File ui/base/ime/input_method_win.cc (right): https://codereview.chromium.org/1566083002/diff/20001/ui/base/ime/input_method_win.cc#newcode267 ui/base/ime/input_method_win.cc:267: "Char message got without the top-level window being activated."; ...
4 years, 11 months ago (2016-01-08 09:00:16 UTC) #8
Shu Chen
I've added some logs. Please review the latest patch. Thanks
4 years, 11 months ago (2016-01-08 09:25:50 UTC) #9
sky
Do you actually have customers that are handing you logs? I know we have a ...
4 years, 11 months ago (2016-01-08 16:51:58 UTC) #10
Shu Chen
On 2016/01/08 16:51:58, sky wrote: > Do you actually have customers that are handing you ...
4 years, 11 months ago (2016-01-09 01:45:53 UTC) #11
Shu Chen
https://codereview.chromium.org/1566083002/diff/160001/ui/base/ime/input_method_auralinux.cc File ui/base/ime/input_method_auralinux.cc (right): https://codereview.chromium.org/1566083002/diff/160001/ui/base/ime/input_method_auralinux.cc#newcode49 ui/base/ime/input_method_auralinux.cc:49: if (!system_toplevel_window_focused()) { On 2016/01/08 16:51:57, sky wrote: > ...
4 years, 11 months ago (2016-01-09 01:46:02 UTC) #12
Shu Chen
I'm thinking it may be better to split this cl into 2. One to actually ...
4 years, 11 months ago (2016-01-09 12:33:31 UTC) #13
sky
What I think should happen is if you hit the conditional in InputMethodWin::OnChar() that causes ...
4 years, 11 months ago (2016-01-11 16:25:51 UTC) #14
Shu Chen
I've now use dump instead of logging so that the logs can be collected without ...
4 years, 11 months ago (2016-01-13 04:03:33 UTC) #16
eroman
https://codereview.chromium.org/1566083002/diff/200001/ui/base/ime/input_method_auralinux.cc File ui/base/ime/input_method_auralinux.cc (right): https://codereview.chromium.org/1566083002/diff/200001/ui/base/ime/input_method_auralinux.cc#newcode50 ui/base/ime/input_method_auralinux.cc:50: LOG(ERROR) << "Key event got without the top-level window ...
4 years, 11 months ago (2016-01-13 22:27:08 UTC) #17
Shu Chen
https://codereview.chromium.org/1566083002/diff/200001/ui/base/ime/input_method_auralinux.cc File ui/base/ime/input_method_auralinux.cc (right): https://codereview.chromium.org/1566083002/diff/200001/ui/base/ime/input_method_auralinux.cc#newcode50 ui/base/ime/input_method_auralinux.cc:50: LOG(ERROR) << "Key event got without the top-level window ...
4 years, 11 months ago (2016-01-14 07:44:47 UTC) #18
eroman
the dumping portion looks good once comments around AddNumber() are address (i.e. remove it). https://codereview.chromium.org/1566083002/diff/240001/ui/base/ime/input_method_log_collector.cc ...
4 years, 11 months ago (2016-01-14 19:44:13 UTC) #19
Shu Chen
https://codereview.chromium.org/1566083002/diff/240001/ui/base/ime/input_method_log_collector.cc File ui/base/ime/input_method_log_collector.cc (right): https://codereview.chromium.org/1566083002/diff/240001/ui/base/ime/input_method_log_collector.cc#newcode20 ui/base/ime/input_method_log_collector.cc:20: if (logs_.size() >= 50) On 2016/01/14 19:44:13, eroman wrote: ...
4 years, 11 months ago (2016-01-16 04:15:46 UTC) #20
Shu Chen
I'm not sure whether this can catch Jan 18 (Mon) M48 stable cut. sky@, do ...
4 years, 11 months ago (2016-01-16 04:24:12 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566083002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566083002/280001
4 years, 11 months ago (2016-01-19 04:28:24 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/91103)
4 years, 11 months ago (2016-01-19 05:03:10 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566083002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566083002/300001
4 years, 11 months ago (2016-01-19 05:36:40 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/160903)
4 years, 11 months ago (2016-01-19 06:15:44 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566083002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566083002/320001
4 years, 11 months ago (2016-01-19 06:29:17 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-19 07:43:56 UTC) #33
sky
LGTM - I was out Friday, sorry. https://codereview.chromium.org/1566083002/diff/320001/ui/base/ime/input_method_log_collector.h File ui/base/ime/input_method_log_collector.h (right): https://codereview.chromium.org/1566083002/diff/320001/ui/base/ime/input_method_log_collector.h#newcode15 ui/base/ime/input_method_log_collector.h:15: class UI_BASE_IME_EXPORT ...
4 years, 11 months ago (2016-01-19 16:59:21 UTC) #34
Shu Chen
eroman@, can you please take another look? Thanks https://codereview.chromium.org/1566083002/diff/320001/ui/base/ime/input_method_log_collector.h File ui/base/ime/input_method_log_collector.h (right): https://codereview.chromium.org/1566083002/diff/320001/ui/base/ime/input_method_log_collector.h#newcode15 ui/base/ime/input_method_log_collector.h:15: class ...
4 years, 11 months ago (2016-01-20 00:31:49 UTC) #35
eroman
lgtm
4 years, 11 months ago (2016-01-20 00:46:01 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566083002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566083002/340001
4 years, 11 months ago (2016-01-20 01:45:36 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/104177) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 11 months ago (2016-01-20 01:55:40 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566083002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566083002/360001
4 years, 11 months ago (2016-01-20 02:20:29 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/81591) chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 11 months ago (2016-01-20 02:42:41 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566083002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566083002/360001
4 years, 11 months ago (2016-01-20 03:06:29 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566083002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566083002/380001
4 years, 11 months ago (2016-01-20 03:53:45 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/161556)
4 years, 11 months ago (2016-01-20 04:19:16 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566083002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566083002/400001
4 years, 11 months ago (2016-01-20 04:59:34 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/10267)
4 years, 11 months ago (2016-01-20 05:43:53 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566083002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566083002/400001
4 years, 11 months ago (2016-01-20 06:27:29 UTC) #60
commit-bot: I haz the power
Committed patchset #21 (id:400001)
4 years, 11 months ago (2016-01-20 08:46:39 UTC) #61
commit-bot: I haz the power
Patchset 21 (id:??) landed as https://crrev.com/d6b55d458f5d3ebeba2826520f14b4bf0e571396 Cr-Commit-Position: refs/heads/master@{#370340}
4 years, 11 months ago (2016-01-20 08:47:50 UTC) #63
ramant (doing other things)
4 years, 11 months ago (2016-01-21 22:19:03 UTC) #64
Message was sent while issue was closed.
A revert of this CL (patchset #21 id:400001) has been created in
https://codereview.chromium.org/1615073005/ by rtenneti@chromium.org.

The reason for reverting is: Very high crash rate .

Powered by Google App Engine
This is Rietveld 408576698