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

Issue 970743002: [IME] Fix s_suppressNextKeypressEvent logic in WebViewImpl::setComposition(). (Closed)

Created:
5 years, 9 months ago by huangs
Modified:
5 years, 9 months ago
CC:
blink-reviews, Torne
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[IME] Fix s_suppressNextKeypressEvent logic in WebViewImpl::setComposition(). This implements suzhe@'s suggested fix, as alternative to the attempt in https://codereview.chromium.org/956133002/ . Also ported the new test over. BUG=453499 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191167

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fixing comments. #

Patch Set 3 : Cleaning up logic. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -12 lines) Patch
M Source/web/WebViewImpl.cpp View 1 2 2 chunks +7 lines, -12 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 chunk +49 lines, -0 lines 0 comments Download
A Source/web/tests/data/composition_not_cancelled_by_backspace.html View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (3 generated)
huangs
PTAL.
5 years, 9 months ago (2015-03-02 03:15:40 UTC) #2
James Su
The change LGTM. Does it solve the original problem?
5 years, 9 months ago (2015-03-02 03:38:50 UTC) #3
huangs
Yes, now backspace does not cancel composition, regardless of autocomplete.
5 years, 9 months ago (2015-03-02 04:00:44 UTC) #4
James Su
On 2015/03/02 04:00:44, huangs wrote: > Yes, now backspace does not cancel composition, regardless of ...
5 years, 9 months ago (2015-03-02 05:25:14 UTC) #5
Ken Russell (switch to Gerrit)
I'd like to defer my review to aelias@, boliu@, tkent@, or other reviewers they may ...
5 years, 9 months ago (2015-03-02 05:37:12 UTC) #7
aelias_OOO_until_Jul13
https://codereview.chromium.org/970743002/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/970743002/diff/1/Source/web/WebViewImpl.cpp#newcode2311 Source/web/WebViewImpl.cpp:2311: if (m_suppressNextKeypressEvent && !inputMethodController.hasComposition()) { nit: no braces here ...
5 years, 9 months ago (2015-03-02 08:48:57 UTC) #8
huangs
Updated, but didn't remove the code block yet. PTAL. https://codereview.chromium.org/970743002/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/970743002/diff/1/Source/web/WebViewImpl.cpp#newcode2316 Source/web/WebViewImpl.cpp:2316: ...
5 years, 9 months ago (2015-03-02 16:30:46 UTC) #9
aelias_OOO_until_Jul13
https://codereview.chromium.org/970743002/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/970743002/diff/1/Source/web/WebViewImpl.cpp#newcode2316 Source/web/WebViewImpl.cpp:2316: if (text.isEmpty()) { On 2015/03/02 16:30:46, huangs wrote: > ...
5 years, 9 months ago (2015-03-02 17:55:37 UTC) #10
huangs
https://codereview.chromium.org/970743002/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/970743002/diff/1/Source/web/WebViewImpl.cpp#newcode2316 Source/web/WebViewImpl.cpp:2316: if (text.isEmpty()) { There's still a code path where ...
5 years, 9 months ago (2015-03-02 19:11:16 UTC) #11
aelias_OOO_until_Jul13
https://codereview.chromium.org/970743002/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/970743002/diff/1/Source/web/WebViewImpl.cpp#newcode2316 Source/web/WebViewImpl.cpp:2316: if (text.isEmpty()) { On 2015/03/02 19:11:15, huangs wrote: > ...
5 years, 9 months ago (2015-03-02 19:34:07 UTC) #12
huangs
Okay I'll remove the block and test.
5 years, 9 months ago (2015-03-02 19:37:00 UTC) #13
huangs
Updated. Unittest and manual testing looks okay. However, I think I found a new bug ...
5 years, 9 months ago (2015-03-02 20:09:18 UTC) #14
aelias_OOO_until_Jul13
lgtm as far as this goes. On 2015/03/02 at 20:09:18, huangs wrote: > Updated. Unittest ...
5 years, 9 months ago (2015-03-02 20:22:55 UTC) #15
huangs
Looking into CompositionEnd specs in https://developer.mozilla.org/en-US/docs/Web/Events/compositionend , it states that event.data is "he original string ...
5 years, 9 months ago (2015-03-02 20:54:53 UTC) #16
James Su
LGTM
5 years, 9 months ago (2015-03-03 00:13:33 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/970743002/40001
5 years, 9 months ago (2015-03-03 02:33:17 UTC) #19
huangs
Thanks, submitting! Please note that I advised torne@ that we should try to merge this ...
5 years, 9 months ago (2015-03-03 02:34:06 UTC) #20
commit-bot: I haz the power
5 years, 9 months ago (2015-03-03 05:42:40 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191167

Powered by Google App Engine
This is Rietveld 408576698