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

Issue 2664603002: Remove replaceComposition() calls in finishComposingText. (Closed)

Created:
3 years, 10 months ago by aelias_OOO_until_Jul13
Modified:
3 years, 10 months ago
Reviewers:
sebsg, yosin_UTC9, yabinh
CC:
blink-reviews, blink-reviews-html_chromium.org, Changwan Ryu, chromium-reviews, dglazkov+blink, yabinh
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove replaceComposition() calls in finishComposingText. We recently split commitText("") into a new method finishComposingText, a no-op commit that simply preserves the already existing composition. But because of its historical origins it still had the replaceComposition call in it. This is causing a bug with "yellow" autofill status getting cleared due to the operation being interpreted as user typing. But also, it's unnecessary work in general, and the input/compositionupdate events are just repeated from the last setComposition() call. So just clean them out and have a clear()/moveCaret() call. As a result of this, I was also able to clean out another longstanding autofill ignoring flag that no longer has anything to ignore. TEST=WebViewTest.FinishComposingTextDoesntTriggerAutofillTextChange BUG=681822 Review-Url: https://codereview.chromium.org/2664603002 Cr-Commit-Position: refs/heads/master@{#448546} Committed: https://chromium.googlesource.com/chromium/src/+/81279cd5b209a34ca4f7702f2a10576faa50fdf9

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Remove logging #

Patch Set 4 : Fix tests #

Patch Set 5 : Delete autofill dead code, add test case #

Patch Set 6 : Refactor #

Patch Set 7 : Fix enter key test #

Patch Set 8 : Clean up #

Total comments: 2

Patch Set 9 : yabinh@ comment, fix test #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -74 lines) Patch
M components/autofill/content/renderer/autofill_agent.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M components/autofill/content/renderer/autofill_agent.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/composition-event-source-device-event-sender-expected.txt View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/ime-composition-events-001-expected.txt View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InputMethodController.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 9 7 chunks +20 lines, -26 lines 0 comments Download
M third_party/WebKit/public/web/WebAutofillClient.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 47 (37 generated)
aelias_OOO_until_Jul13
PTAL: yosin@ for core/editing sebsg@ for code deletion in components/autofill/
3 years, 10 months ago (2017-01-28 05:22:25 UTC) #24
yabinh
https://codereview.chromium.org/2664603002/diff/140001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2664603002/diff/140001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode2874 third_party/WebKit/Source/web/tests/WebViewTest.cpp:2874: TEST_P(WebViewTest, SetCompositionFromExistingTextTriggersAutofillTextChange) { The name should be ...DoesntTrigger...?
3 years, 10 months ago (2017-01-28 06:10:59 UTC) #26
aelias_OOO_until_Jul13
https://codereview.chromium.org/2664603002/diff/140001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2664603002/diff/140001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode2874 third_party/WebKit/Source/web/tests/WebViewTest.cpp:2874: TEST_P(WebViewTest, SetCompositionFromExistingTextTriggersAutofillTextChange) { On 2017/01/28 at 06:10:59, yabinh wrote: ...
3 years, 10 months ago (2017-01-28 06:38:49 UTC) #31
sebsg
lgtm for components/autofill
3 years, 10 months ago (2017-02-02 14:55:34 UTC) #34
aelias_OOO_until_Jul13
yosin@, ping for core/editing review.
3 years, 10 months ago (2017-02-04 02:25:42 UTC) #35
yosin_UTC9
lgtm for core/editing
3 years, 10 months ago (2017-02-06 04:47:18 UTC) #36
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/2664603002/160001
3 years, 10 months ago (2017-02-07 00:19:33 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/148385) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-07 00:23:24 UTC) #40
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/2664603002/180001
3 years, 10 months ago (2017-02-07 01:18:53 UTC) #44
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 04:47:29 UTC) #47
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/81279cd5b209a34ca4f7702f2a10...

Powered by Google App Engine
This is Rietveld 408576698