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

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

Created:
3 years, 10 months ago by aelias_OOO_until_Jul13
Modified:
3 years, 10 months ago
Reviewers:
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, rouslan+autofill_chromium.org, jam, sebsg+autofillwatch_chromium.org, blink-reviews, browser-components-watch_chromium.org, mlamouri+watch-blink_chromium.org, dcheng, mathp+autofillwatch_chromium.org, dglazkov+blink, darin-cc_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, kinuko+watch, blink-reviews-api_chromium.org
Target Ref:
refs/pending/branch-heads/2987
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-Original-Commit-Position: refs/heads/master@{#448546} Review-Url: https://codereview.chromium.org/2681023003 . Cr-Commit-Position: refs/branch-heads/2987@{#381} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/b1b55fb2cf97a6274212b1f288ea20efff471901

Patch Set 1 #

Messages

Total messages: 2 (1 generated)
aelias_OOO_until_Jul13
3 years, 10 months ago (2017-02-08 03:57:28 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
b1b55fb2cf97a6274212b1f288ea20efff471901.

Powered by Google App Engine
This is Rietveld 408576698