When there is composition string on awesome bar, if you press "enter key", Fennec native will start search or URL navigation. On stock browser or Fennec XUL, if there is composition string, "enter key" means commiting string. When there is composition string, we should commit text if entry key is pressed.
This bug is a side-effect of the fix for bug 705939. The keyboard handling in the Awesomebar is a bit hacky. Due to some internal specifics of the UI controls used for that screen the edit box sometimes loses its focus, and we cannot handle the input properly in some cases. The bug 702995 was filed to investigate this, but there is still no solution. The issues appearing are being patched, but those workarounds may cause other problems, and here's one of such examples. We may try to add another check into onKeyPreIme listener to handle this specific situation here: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/AwesomeBar.java#168 Though I'm not sure yet if it's possible to check the current composition state.
I think this bug should be a fennec-1.0 blocker because it prevents the user from entering a URL.
Makoto, can you still reproduce this bug? I tested Google Japanese Input method on my Galaxy Nexus and Samsung S2, but I can't reproduce the problem.
(In reply to Chris Peterson (:cpeterson) from comment #4) > Makoto, can you still reproduce this bug? I tested Google Japanese Input > method on my Galaxy Nexus and Samsung S2, but I can't reproduce the problem. Google Japanese Input doesn't support Hardware keyboard. Try Shimeji or OpenWnn on HTC Desire Z.
Simeji reproduces the issue on any device. cpeterson, if you're in SF Office, I can show you in person.
Created attachment 608548 [details] [diff] [review] bug-720300-awesomebar-composition-string.patch Don't submit AwesomeBar text when there is an active composition string. This patch generalizes Makato-san's fix for bug 715207 so we can check for a composition string when processing ENTER keydown events. This bug only affects HKB.
oops: Makoto, not "Makato"! <:)
checkin-needed for mozilla-central
Comment on attachment 608548 [details] [diff] [review] bug-720300-awesomebar-composition-string.patch [Approval Request Comment] Regression caused by (bug #): bug 705939 User impact if declined: Multibyte text input will not work in AwesomeBar. Testing completed (on m-c, etc.): Risk to taking this patch (and alternatives if risky): AwesomeBar text input. String changes made by this patch: None
Comment on attachment 608548 [details] [diff] [review] bug-720300-awesomebar-composition-string.patch [Triage Comment] Mobile only - approved for Aurora 13.
checkin-needed for mozilla-aurora
Verified fixed on: Firefox 15.0a1 (2012-05-21) Firefox 14.0a2 (2012-05-21) Device: Galaxy Nexus OS: Android 4.0.2