Closed
Bug 1353799
Opened 8 years ago
Closed 8 years ago
Cursor displayed at wrong position after entering space
Categories
(Firefox for Android Graveyard :: Keyboards and IME, defect)
Tracking
(fennec54+, firefox-esr52 unaffected, firefox53 unaffected, firefox54+ verified, firefox55 verified)
VERIFIED
FIXED
Firefox 55
Tracking | Status | |
---|---|---|
fennec | 54+ | --- |
firefox-esr52 | --- | unaffected |
firefox53 | --- | unaffected |
firefox54 | + | verified |
firefox55 | --- | verified |
People
(Reporter: jchen, Assigned: jchen)
References
Details
(Keywords: regression)
Attachments
(5 files, 1 obsolete file)
(deleted),
patch
|
esawin
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
esawin
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
esawin
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
esawin
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
STR:
1. Using Gboard, enter a long word in a text field.
2. Place the cursor in the middle of the word.
3. Press space.
The cursor is displayed at the end of the new, second word, but if you enter a letter, the cursor jumps back to the correct position at the beginning of the second word. I suspect this is a regression from bug 1137567.
Assignee | ||
Updated•8 years ago
|
tracking-fennec: --- → ?
tracking-fennec: ? → 54+
Assignee | ||
Comment 1•8 years ago
|
||
Use a flag parameter instead of individual boolean parameters to make
it more convenient to add more options.
Attachment #8862088 -
Flags: review?(esawin)
Assignee | ||
Comment 2•8 years ago
|
||
Update the composition when setting/removing spans, so that we update
the selection/cursor during a composition. However, we must limit any
updating to the current composition only (as indicated by the
keep-current-composition flag), because the Facebook comment box behaves
incorrectly if we repeatedly start and end new compositions.
Attachment #8862089 -
Flags: review?(esawin)
Assignee | ||
Comment 3•8 years ago
|
||
* Include the type of the editor (input, textarea, contentEditable,
designMode) in BasicInputConnectionTest, so we can work around the
differences in behavior among the different editor types.
* Add timestamps to key events, because lack of timestamps was
triggering a crash when running testInputConnection.
Attachment #8862090 -
Flags: review?(esawin)
Assignee | ||
Comment 4•8 years ago
|
||
Add two tests to testInputConnection that record the sequence of
composition events during editing, and check that the sequence is what
we expected.
The first test makes sure that we reuse the current composition on the
Gecko side when setting composing text; otherwise the Facebook comment
box behaves incorrectly.
The second test makes sure that we can move the cursor inside the
current composition, to fix this particular bug.
Attachment #8862091 -
Flags: review?(esawin)
Updated•8 years ago
|
Attachment #8862088 -
Flags: review?(esawin) → review+
Updated•8 years ago
|
Attachment #8862089 -
Flags: review?(esawin) → review+
Updated•8 years ago
|
Attachment #8862090 -
Flags: review?(esawin) → review+
Updated•8 years ago
|
Attachment #8862091 -
Flags: review?(esawin) → review+
Pushed by nchen@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f21f31eafc6d
1. Make icMaybeSendComposition accept a flag parameter; r=esawin
https://hg.mozilla.org/integration/mozilla-inbound/rev/904e65ad1fb8
2. Update current composition when setting/removing spans; r=esawin
https://hg.mozilla.org/integration/mozilla-inbound/rev/29de8f4097d3
3. Add types and timestamps in testInputConnection; r=esawin
https://hg.mozilla.org/integration/mozilla-inbound/rev/94046d0bb7e3
4. Add composition event tests to testInputConnection; r=esawin
Comment 6•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f21f31eafc6d
https://hg.mozilla.org/mozilla-central/rev/904e65ad1fb8
https://hg.mozilla.org/mozilla-central/rev/29de8f4097d3
https://hg.mozilla.org/mozilla-central/rev/94046d0bb7e3
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Comment 7•8 years ago
|
||
Please request Beta approval on this when you feel it's ready for uplift.
status-firefox53:
--- → unaffected
status-firefox54:
--- → affected
status-firefox-esr52:
--- → unaffected
tracking-firefox54:
--- → ?
Flags: needinfo?(nchen)
Keywords: regression
Assignee | ||
Comment 8•8 years ago
|
||
Approval Request Comment
[Feature/Bug causing the regression]: bug 1307816
[User impact if declined]: Possible incorrect cursor placement when entering text (but only visually incorrect; functionality should be correct)
[Is this code covered by automated tests?]: Yes
[Has the fix been verified in Nightly?]: Yes
[Needs manual test from QE? If yes, steps to reproduce]: No
[List of other uplifts needed for the feature/fix]: No
[Is the change risky?]: Somewhat
[Why is the change risky/not risky?]: Change is covered by new testcases, but the change involves some new code that makes it somewhat risky.
[String changes made/needed]: None
Flags: needinfo?(nchen)
Attachment #8863033 -
Flags: review+
Attachment #8863033 -
Flags: approval-mozilla-beta?
Assignee | ||
Updated•8 years ago
|
Comment 10•8 years ago
|
||
Hi Mihai,
Can you help verify if this issue was fixed as expected on a latest Nightly build? Thanks!
Flags: qe-verify+
Flags: needinfo?(mihai.ninu)
Comment 11•8 years ago
|
||
Hi,
Verifying as fixed on the latest Nightly build (55.0a1 - 2017-05-08)
This issue was tested using the latest version of Gboard on a Samsung Galaxy S6 EDGE (Android 6.0), a Nexus 6P (Android 7.1.1) and a Samsung Galaxy Tab Active (Android 5.1.1)
Flags: needinfo?(mihai.ninu)
Comment 12•8 years ago
|
||
Comment on attachment 8863033 [details] [diff] [review]
Patch for Beta
Fix a regression and was verified. Beta54+. Should be in 54 beta 7.
Attachment #8863033 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 13•8 years ago
|
||
Comment 14•8 years ago
|
||
had to back this out for failures like https://treeherder.mozilla.org/logviewer.html#?job_id=97899570&repo=mozilla-beta
Flags: needinfo?(nchen)
Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(nchen)
Assignee | ||
Comment 15•8 years ago
|
||
There's something weird going on with the selectionchange listeners, so I just removed them for this new Beta patch. The tests still test against this bug even without those listeners.
Attachment #8863033 -
Attachment is obsolete: true
Flags: needinfo?(cbook)
Attachment #8867017 -
Flags: review+
Comment 16•8 years ago
|
||
bugherder uplift |
Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(cbook)
Comment 17•8 years ago
|
||
Verified as fixed, following the described STR, on Beta 54.0b8.
Devices:
-Huawei Honor 5X (Android 5.1.1)
-HTC 10 (Android 6.0.1)
Status: RESOLVED → VERIFIED
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
•