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

Issue 1165793007: Make sure multi chracter codepoints are deleted correctly (Closed)

Created:
5 years, 6 months ago by Changwan Ryu
Modified:
5 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make sure multi chracter codepoints are deleted correctly deleteSurroundingText() only deletes one character even for multi-character codepoint. On the blink side, we have InputMethodController::extendSelectionAndDelete() to make sure selection and deletion respect Unicode boundaries. However, AdapterInputConnection keeps track of selection region separately, and this value is incorrectly updated. On top of adding a new test for this case, it extends waitAndVerifyEditorCallback to also check the outbound calls to InputMethodManager. The above extension found that testEnterKeyEventWhileComposingText fails because there is hidden discrepancy between blink implementation and what we report to InputMethodManager. So I've added a TODO for that. BUG=497091 Committed: https://crrev.com/5f6e036312bc4a978768f5b5971eee1a5ec9f272 Cr-Commit-Position: refs/heads/master@{#333704}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : addressed brian's comment and TODOs #

Patch Set 5 : fixed findbug error #

Patch Set 6 : do not check updateSelection for some of the tests #

Messages

Total messages: 28 (7 generated)
Changwan Ryu
5 years, 6 months ago (2015-06-04 10:56:50 UTC) #2
aurimas (slooooooooow)
lgtm
5 years, 6 months ago (2015-06-04 17:10:44 UTC) #3
bcwhite
LGTM https://codereview.chromium.org/1165793007/diff/40001/content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java File content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java (right): https://codereview.chromium.org/1165793007/diff/40001/content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java#newcode362 content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java:362: public static int adjustLengthIfAtUtf16Boundary(CharSequence str, int index) { ...
5 years, 6 months ago (2015-06-05 18:27:32 UTC) #4
aelias_OOO_until_Jul13
Hmm, this fix doesn't seem like the right approach to me. First of all, the ...
5 years, 6 months ago (2015-06-05 19:31:12 UTC) #5
aelias_OOO_until_Jul13
"not lgtm" to clear out previous lgtm (particularly Aurimas's which was on a test-only variant ...
5 years, 6 months ago (2015-06-05 19:49:56 UTC) #6
Changwan Ryu
On 2015/06/05 19:31:12, aelias wrote: > Hmm, this fix doesn't seem like the right approach ...
5 years, 6 months ago (2015-06-05 22:19:33 UTC) #7
aelias_OOO_until_Jul13
On 2015/06/05 at 22:19:33, changwan wrote: > On 2015/06/05 19:31:12, aelias wrote: > > Hmm, ...
5 years, 6 months ago (2015-06-05 22:54:14 UTC) #8
Changwan Ryu
On 2015/06/05 22:54:14, aelias wrote: > On 2015/06/05 at 22:19:33, changwan wrote: > > On ...
5 years, 6 months ago (2015-06-08 06:05:57 UTC) #9
Changwan Ryu
On 2015/06/08 06:05:57, Changwan Ryu wrote: > On 2015/06/05 22:54:14, aelias wrote: > > On ...
5 years, 6 months ago (2015-06-08 07:08:49 UTC) #10
aelias_OOO_until_Jul13
OK, I suppose the approach is fine, just a minor comment below. Please also address ...
5 years, 6 months ago (2015-06-09 03:52:53 UTC) #11
Changwan Ryu
PTAL I've extended waitAndVerifyEditableCallback to also check outbound calls to InputMethodManager, and removed some of ...
5 years, 6 months ago (2015-06-09 12:34:12 UTC) #12
aelias_OOO_until_Jul13
lgtm
5 years, 6 months ago (2015-06-09 15:18:48 UTC) #13
Changwan Ryu
Ted, could you review TestInputMethodManagerWrapper.java? Thanks.
5 years, 6 months ago (2015-06-10 00:14:55 UTC) #15
Ted C
On 2015/06/10 00:14:55, Changwan Ryu wrote: > Ted, could you review TestInputMethodManagerWrapper.java? Thanks. TestInputMethodManagerWrapper.java - ...
5 years, 6 months ago (2015-06-10 00:18:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1165793007/80001
5 years, 6 months ago (2015-06-10 00:24:35 UTC) #19
Changwan Ryu
On 2015/06/10 00:18:17, Ted C wrote: > On 2015/06/10 00:14:55, Changwan Ryu wrote: > > ...
5 years, 6 months ago (2015-06-10 00:29:18 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/31938)
5 years, 6 months ago (2015-06-10 03:02:28 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1165793007/100001
5 years, 6 months ago (2015-06-10 08:06:24 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 6 months ago (2015-06-10 09:10:20 UTC) #26
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/5f6e036312bc4a978768f5b5971eee1a5ec9f272 Cr-Commit-Position: refs/heads/master@{#333704}
5 years, 6 months ago (2015-06-10 09:11:15 UTC) #27
David Trainor- moved to gerrit
5 years, 6 months ago (2015-06-10 18:28:41 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1173083004/ by dtrainor@chromium.org.

The reason for reverting is: Failing Android Tests (dbg) builder:
http://build.chromium.org/p/chromium.linux/builders/Android%20Tests%20%28dbg%...

The newly added test seems to be flaky..

Powered by Google App Engine
This is Rietveld 408576698