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)
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.
Updated•13 years ago
|
tracking-fennec: --- → ?
| Assignee | ||
Comment 1•13 years ago
|
||
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
| Reporter | ||
Comment 2•13 years ago
|
||
| Reporter | ||
Comment 3•13 years ago
|
||
Thanks Jim- I've installed and captured a logcat with the build you attached.
| Assignee | ||
Comment 4•13 years ago
|
||
WIP patch
| Assignee | ||
Comment 5•13 years ago
|
||
(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
| Reporter | ||
Comment 6•13 years ago
|
||
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.
Comment 7•13 years ago
|
||
is this a regression (i.e. does this happen on 22, aurora)?
Flags: needinfo?(zcampbell)
| Reporter | ||
Comment 8•13 years ago
|
||
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)
| Assignee | ||
Comment 9•13 years ago
|
||
(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
Updated•13 years ago
|
tracking-fennec: ? → 23+
Keywords: regression,
regressionwindow-wanted
| Assignee | ||
Comment 10•13 years ago
|
||
BTW Zac, can you try this new build?
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/nchen@mozilla.com-a03da67c3ca7/try-android/fennec-23.0a1.en-US.android-arm.apk
Thanks!
Keywords: regressionwindow-wanted
| Reporter | ||
Comment 11•13 years ago
|
||
:jchen, that version works for this test case. (caveat: didn't test any other keyboard types or input field types).
| Assignee | ||
Comment 12•13 years ago
|
||
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)
| Assignee | ||
Updated•13 years ago
|
Attachment #741328 -
Attachment is obsolete: true
Comment 13•13 years ago
|
||
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+
| Assignee | ||
Comment 14•13 years ago
|
||
Separated into function and added comment
Attachment #742492 -
Attachment is obsolete: true
Attachment #743199 -
Flags: review+
| Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 15•13 years ago
|
||
Keywords: checkin-needed
Comment 16•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 23
Comment 17•13 years ago
|
||
Verified fixed on:
Build: Firefox for Android 23.0b6
Device: HTC Desire HD
OS: Android 2.3.5
Status: RESOLVED → VERIFIED
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•