Closed Bug 950085 Opened 12 years ago Closed 12 years ago

Don't toggle text-selection action-bar visibility changes on repositioning of cursor in inputs

Categories

(Firefox for Android Graveyard :: Text Selection, defect)

29 Branch
ARM
Android
defect
Not set
normal

Tracking

(firefox28 affected, firefox29 affected, firefox30 affected, fennec28+)

RESOLVED WORKSFORME
Tracking Status
firefox28 --- affected
firefox29 --- affected
firefox30 --- affected
fennec 28+ ---

People

(Reporter: aaronmt, Assigned: wesj)

References

()

Details

(Keywords: reproducible, testcase)

Attachments

(1 file)

Currently when one repositions a cursor in an already focused editable input (e.g, a textarea) we toggle between dismissing the text-selection action-bar to reshowing the URL bar to reshowing the text-selection action-bar again which looks sloppy. To reproduce: data:text/html,<textarea>this is a testcase</textarea>, tap to focus the field, tap again to invoke the text-selection action-bar, tap to reposition the cursor handle elsewhere within the text value Expected: We keep the text-selection action-bar up Actual: We flip between visibility -- Aurora (28.0), Nightly (29.0) | LG Nexus 4 (Android 4.4.2)
Summary: Don't toggle text-selection visibility changes on repositioning of cursor in inputs → Don't toggle text-selection action-bar visibility changes on repositioning of cursor in inputs
I don't see this on a current nightly w/N7 w my Google Keyboard .. w/Swiftkbd I see the transition between actionbar /on then maybe back off if caret is lost due to autoComplete etc. like we discussed in bug 943944 comment #22 ...
Screen-record from my Nexus 4 (Android 4.4.2): http://www.youtube.com/watch?v=UIHIn_A-vqs
Assignee: nobody → wjohnston
tracking-fennec: ? → 28+
This looks to be keyboard dependent. i.e. every time you tap, your keyboard is throwing you into composition mode and then moving the cursor for us, which (for some reason?) causes us to throw away the caret. What keyboard is this?
Stock Google Keyboard
In bug 927882 we're discussing the validity of throwing away the caret on compositionend key events. This problem is quite noticeable on Swiftkey, but also as mentioned by aaronmt, also observable on Google Keyboard. I've yet to see these problems on Jellybean keyboard.
Depends on: 927882
Status: NEW → ASSIGNED
Ping?
This is the patch from bug 927882. It makes us not throw away the selection on compositionend events. margaret r+'d it there. It fixes this bug for me. Not sure of all the caveots involved though.
Attachment #8370153 - Flags: review?(nchen)
Attachment #8370153 - Flags: feedback?(markcapella)
Comment on attachment 8370153 [details] [diff] [review] Patch from bug 927882 Review of attachment 8370153 [details] [diff] [review]: ----------------------------------------------------------------- I can only reproduce the original issue (aiui) when using the Swiftkeyboard, on both a GS3 and an N7. In this case, this patch does correct the navigation toolbar visibility flip, but introduces a regression where the caret can be left incorrectly positioned following auto-correction, etc. (This is the final issue why I wasn't able to finish bug 927882). Testing on: GS3 w/Default (Samsung) and Jellybean keyboards... N7 w/Default (Google) and Jellybean keyboards... I can't repro the original issue, and this patch has a neutral impact. The only thing I see in these before/after tests, is a brief flash of the icons in the actionbar, which is barely noticeable.
Attachment #8370153 - Flags: feedback?(markcapella) → feedback-
Comment on attachment 8370153 [details] [diff] [review] Patch from bug 927882 Review of attachment 8370153 [details] [diff] [review]: ----------------------------------------------------------------- Canceling r? based on Mark's feedback. Also I'm not very familiar with this code. I think to get this right, we should first find some time to talk about interactions between text selection and IME in general.
Attachment #8370153 - Flags: review?(nchen)
Flags: needinfo?(wjohnston)
Any update here?
We'll retest/revisit once some of the new IME patches have landed.
Flags: needinfo?(wjohnston)
Mark, do you think this is still happening? I'll try to test...
Flags: needinfo?(markcapella)
I believe the bug 927882 fixed this... I observed positive results during testing iirc
Flags: needinfo?(markcapella)
Forgot to verify this. Yes, this has resolved and is now working appropriately across the affected channels.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
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

Created:
Updated:
Size: