Closed
Bug 934470
Opened 11 years ago
Closed 11 years ago
Cursor pin disappears on drag in textarea input
Categories
(Firefox for Android Graveyard :: Text Selection, defect)
Tracking
(firefox26 wontfix, firefox27 verified, firefox28 verified, firefox29 verified, fennec26+)
VERIFIED
FIXED
Firefox 28
People
(Reporter: kost-bebix, Assigned: capella)
References
()
Details
(Keywords: reproducible, testcase)
Attachments
(1 file)
4.00 KB,
patch
|
Margaret
:
review+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 (Beta/Release)
Build ID: 20131028113308
Steps to reproduce:
I put some text inside textarea. Then pressed on some point in text, and tried to move orange ping (text cursor).
Actual results:
Pin disappeared.
Expected results:
Pin should move with my finger to point to another text location.
Comment 1•11 years ago
|
||
This is reproducible on all channels. I don't think it's a regression but this should be worth tracking. Reproducible with a simple test-case (see URL, focus the field and attempt to drag the cursor).
Status: UNCONFIRMED → NEW
tracking-fennec: --- → ?
status-firefox26:
--- → affected
status-firefox27:
--- → affected
status-firefox28:
--- → affected
Component: General → Keyboards and IME
Ever confirmed: true
Keywords: reproducible,
testcase
OS: Linux → Android
Hardware: x86_64 → ARM
Version: Firefox 27 → Trunk
Updated•11 years ago
|
Summary: Cursor pin disappears on dragging on textarea input → Cursor pin disappears on drag in textarea input
Comment 2•11 years ago
|
||
Reproducible for me as well, but I'm not familiar with the text selection handle code.
Component: Keyboards and IME → Text Selection
Assignee | ||
Comment 3•11 years ago
|
||
I'm not seeing the issue on my GS3 with the jellybean keyboard, though on quick glance I see the SwiftKey Beta keyboard auto updating text in ways that discontinue display of our caret. (Swiftkey uses an aggressive text update approach).
This behaviour is fixed with bug 927882, an a quick local test on my N7 confirms.
Let me know if you still see something different.
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 5•11 years ago
|
||
Sorry, but I experience this problem on my Nexus 7 tablet without any additional keyboard installed (on the stock one). When I move the pin it disappears and cursor moves into beginning position of textarea. I believe it's not a duplicate.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Comment 6•11 years ago
|
||
It will be fixed as part of the patches in bug 927882 is what Mark in comment #3 is referring to. Perhaps Mark can provide you with a try-build with the patches included for you to try out.
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Flags: needinfo?(markcapella)
Resolution: --- → DUPLICATE
Updated•11 years ago
|
tracking-fennec: ? → ---
Assignee | ||
Comment 7•11 years ago
|
||
FYI I'm still looking at this ... testing with N7, the Jellybean keyboard, the Google keyboard, and the Swiftkey board.
In Release I don't see that any of the keybaords are able to manage dragging the caret. I see incredibly slow responses.
For Beta, Aurora, and Nightly I see Jellybean keyboard works fine.
For Beta, Swiftkey doesn't show this problem, but Google does.
For Aurora and Nightly, both the Google and Swiftkey boards exhibit this problem.
Flags: needinfo?(markcapella)
Assignee | ||
Comment 8•11 years ago
|
||
I think this is different enough from bug 927882 that I want to handle it seperately, and first.
For this bug, I think we're seeing a new source of "compositionend" messages, that is causing us to dismiss the cursor / caret tracking code prematurely (while we're in movement).
( my best guess is this change: https://hg.mozilla.org/mozilla-central/rev/f0760ef9e0bc )
We now see events that we didn't previously, which we are actually triggering back to ourselves.
This patch ignores "compositionend" messages during on-the-fly caret movement, to restore utility.
I've tested it locally on a GS3 and an N7, using Samsung, Jellybean, Swift, and Google keyboards.
Assignee: nobody → markcapella
Status: RESOLVED → REOPENED
Attachment #831351 -
Flags: review?(margaret.leibovic)
Resolution: DUPLICATE → ---
Assignee | ||
Comment 9•11 years ago
|
||
For those playing at home:
https://tbpl.mozilla.org/?tree=Try&rev=4bd9b5423a90
Comment 10•11 years ago
|
||
Comment on attachment 831351 [details] [diff] [review]
bug934470 (v0)
Review of attachment 831351 [details] [diff] [review]:
-----------------------------------------------------------------
Apologies for the slow review! This seems reasonable to me.
::: mobile/android/chrome/content/SelectionHandler.js
@@ +167,5 @@
>
> case "compositionend":
> if (this._activeType == this.TYPE_CURSOR) {
> + // Ignore IMM composition notifications during caret movements
> + if (this._ignoreCompositionChanges)
Nit: I would just turn the if statement above into if `(this._activeType == this.TYPE_CURSOR && !this._ignoreCompositionChanges)`
Attachment #831351 -
Flags: review?(margaret.leibovic) → review+
Assignee | ||
Comment 11•11 years ago
|
||
Done! and done :)
https://hg.mozilla.org/integration/fx-team/rev/3a3718b3b441
Comment 12•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 28
![]() |
||
Updated•11 years ago
|
Comment 13•11 years ago
|
||
Comment on attachment 831351 [details] [diff] [review]
bug934470 (v0)
Sadly, we should have tried to uplift this for 26 but missed the boat. I made a beta build with this patch applied and it fixes the big problems described in bug 943944.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): uncertain which bug caused this, but it's an issue introduced in 26
User impact if declined: you can't drag the cursor in inputs/textareas
Testing completed (on m-c, etc.): landed on m-c 11/19
Risk to taking this patch (and alternatives if risky): low-risk, baked for a while on nightly/aurora, can only make things better than the currently (totally busted) state
String or IDL/UUID changes made by this patch: none
Attachment #831351 -
Flags: approval-mozilla-beta?
Updated•11 years ago
|
tracking-fennec: --- → 26+
Comment 14•11 years ago
|
||
Comment on attachment 831351 [details] [diff] [review]
bug934470 (v0)
not sure what it means on your end that this is tracking 26+ since that has already shipped, but go ahead with uplift to 27 beta.
Attachment #831351 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 15•11 years ago
|
||
Updated•11 years ago
|
Flags: needinfo?(aaron.train)
Updated•11 years ago
|
Comment 17•11 years ago
|
||
Verified on Firefox for Android 27 Beta 8 and latest Aurora (2014-01-22).
Device:LG Optimus 4X (Android 4.1.2)
Updated•4 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
•