New issue
Advanced search Search tips

Issue 668036 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows
Pri: 1
Type: Bug



Sign in to add a comment

chrome.input.ime.setComposition API doesn't work with empty text

Project Member Reported by shuchen@chromium.org, Nov 23 2016

Issue description

Version: R56
OS: Linux

What steps will reproduce the problem?
(1) Installs the extension https://chrome.google.com/webstore/detail/google-input-tools/mclkkofklkfljcocdinagocijmpgbhab
(2) Enables & activates the Chinese Pinyin IME.
(3) Typing 'a' and then pressing ESC key.

What is the expected result?
The candidate window is hidden, and the composition text "a" is removed.

What happens instead?
The candidate window is hidden, but the composition text "a" is not removed.

 
chrome.input.ime.setComposition is supposed to work with empty composition text so that the existing composition text can be cleared by extension.


Labels: Merge-Request-56

Comment 4 by dimu@chromium.org, Nov 26 2016

Labels: -Merge-Request-56 Merge-Approved-56 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M56 (branch: 2924)
Project Member

Comment 5 by bugdroid1@chromium.org, Nov 28 2016

Labels: -merge-approved-56 merge-merged-2924
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4008e8aaf220567fca23db9fcec633318ee495aa

commit 4008e8aaf220567fca23db9fcec633318ee495aa
Author: Shu Chen <shuchen@google.com>
Date: Mon Nov 28 01:03:51 2016

Makes delay commitText/setComposition can deal with empty text/composition.

BUG= 668036 

Review-Url: https://codereview.chromium.org/2525723005
Cr-Commit-Position: refs/heads/master@{#434426}
(cherry picked from commit 89a156914461e445488deeca97a453997540e010)

Review URL: https://codereview.chromium.org/2532803002 .

Cr-Commit-Position: refs/branch-heads/2924@{#104}
Cr-Branched-From: 3a87aecc31cd1ffe751dd72c04e5a96a1fc8108a-refs/heads/master@{#433059}

[modify] https://crrev.com/4008e8aaf220567fca23db9fcec633318ee495aa/chrome/browser/ui/input_method/input_method_engine.cc
[modify] https://crrev.com/4008e8aaf220567fca23db9fcec633318ee495aa/chrome/browser/ui/input_method/input_method_engine_base.cc
[modify] https://crrev.com/4008e8aaf220567fca23db9fcec633318ee495aa/chrome/browser/ui/input_method/input_method_engine_base.h

Status: Fixed (was: Started)
Labels: -Hotlist-Merge-Approved
Cc: rbasuvula@chromium.org
Labels: Needs-Feedback
Tested in chrome dev #56.0.2924.10 on Windows 10 & Ubuntu 14.04 and observed that the issue is still reproducible

1.The composition text "a" is not removed.

Attached a screen cast for reference, please let me know if i have missed anything.

Thank you! 
668036.png
91.1 KB View Download
Looks like 56.0.2924.10 has not included the fix cl yet.

You need to enable an IME in the extension, click the extension icon and click the gear button in the popup menu, which will pop up the settings page.
From there, select an IME, e.g. Chinese Pinyin.
Wait for a while to let the language model data being downloaded, and then type in an input field, which will trigger the popup candidate window and composition text.
And then, press Escape key.

Labels: -Needs-Feedback TE-Verified-56.0.2924.10 TE-Verified-M56
Tested in chrome dev #56.0.2924.10 on Windows 10 & Ubuntu 14.04 as per comment#10 steps.composition text "a" is removed.Please find the screen shot for reference.Hence adding TE-Verified label.

Thank You!
668036.ogv
1.0 MB View Download

Sign in to add a comment