Closed Bug 864666 Opened 13 years ago Closed 13 years ago

Two characters entered when typing into password field with 'Phone' type keyboard

Categories

(Firefox for Android Graveyard :: Keyboards and IME, defect)

23 Branch
Other
Android
defect
Not set
major

Tracking

(fennec23+)

VERIFIED FIXED
Firefox 23
Tracking Status
fennec 23+ ---

People

(Reporter: zcampbell, Assigned: jchen)

References

Details

(Keywords: regression)

Attachments

(3 files, 2 obsolete files)

Fx: Nightly 23.0a1 (2013-04-21) Hardware: HTC Desire HD Android: 2.3.5 STR: 1. Change keyboard to 'Phone' type layout (2 key = 'abc') 2. Go to Zimbra mail login 3. Focus in password field 4. Double tap a key to get the 2nd letter, eg 2 for 'b' 5. Two characters will be committed to the password field Expect: Only one character committed to the field.
tracking-fennec: --- → ?
Zac, can you install this Nightly and get the logcat output when you enter the character on the keyboard? http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/nchen@mozilla.com-f795ae30dfd3/try-android/fennec-23.0a1.en-US.android-arm.apk See https://wiki.mozilla.org/Android#Using_logcat on how to get logcat. Let me know if you have questions!
Assignee: nobody → nchen
Status: NEW → ASSIGNED
Thanks Jim- I've installed and captured a logcat with the build you attached.
(In reply to Zac C (:zac) from comment #3) > Thanks Jim- I've installed and captured a logcat with the build you attached. Thanks Zac, that was very helpful! Can you try this build again? http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/nchen@mozilla.com-8044f9628414/try-android/fennec-23.0a1.en-US.android-arm.apk
Jim, with that build it enters the correct character, eg if I double-tap '2' I get 'b'. however when I go to type the next character it will overwrite 'b'. There's never more than one char in the field.
is this a regression (i.e. does this happen on 22, aurora)?
Flags: needinfo?(zcampbell)
I only use Nightly on my Android (updating regularly) and this only regressed this week. Although without downloading and tested I am comfortable saying this was not present on 22 Nightly. I can't speak for Aurora.
Flags: needinfo?(zcampbell)
(In reply to Brad Lassey [:blassey] from comment #7) > is this a regression (i.e. does this happen on 22, aurora)? Yes, regression from bug 859452 (so 23 only)
Blocks: 859452
tracking-fennec: ? → 23+
:jchen, that version works for this test case. (caveat: didn't test any other keyboard types or input field types).
This patch gets rid of any existing composition, when we commit characters as keys when using HTC Touch Input. Otherwise, the new character will be appended to the old composition.
Attachment #742492 - Flags: review?(cpeterson)
Attachment #741328 - Attachment is obsolete: true
Comment on attachment 742492 [details] [diff] [review] Replace composing span when committing char as key (v1) Review of attachment 742492 [details] [diff] [review]: ----------------------------------------------------------------- LGTM. Even though this new code is only used once, it might make the code intention clearer if you extract it into a new utility method called something like "replaceComposingSpanWithSelection()". ::: mobile/android/base/GeckoInputConnection.java @@ +658,5 @@ > + return false; > + } > + int a = getComposingSpanStart(content), > + b = getComposingSpanEnd(content); > + if (a != -1 && b != -1) { Please a short comment explaining why we need to replace the composing span with a selection.
Attachment #742492 - Flags: review?(cpeterson) → review+
Separated into function and added comment
Attachment #742492 - Attachment is obsolete: true
Attachment #743199 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 23
Verified fixed on: Build: Firefox for Android 23.0b6 Device: HTC Desire HD OS: Android 2.3.5
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: