Closed Bug 725919 Opened 12 years ago Closed 3 years ago

Visual cursor position is different from the actual one on Etherpad

Categories

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

ARM
Android
defect

Tracking

(firefox38 wontfix, firefox38.0.5 wontfix, firefox39 wontfix, firefox40 wontfix, firefox41 wontfix)

RESOLVED INCOMPLETE
Tracking Status
firefox38 --- wontfix
firefox38.0.5 --- wontfix
firefox39 --- wontfix
firefox40 --- wontfix
firefox41 --- wontfix

People

(Reporter: alexp, Unassigned, Mentored)

References

Details

(Keywords: inputmethod, Whiteboard: [badfirstbug])

While working on bug 719121 I found the cursor position we receive from Gecko using NS_QUERY_SELECTED_TEXT event is sometimes different from the visual position on Etherpad. This causes some weird things to happen when a new text is entered in a wrong position or a wrong character is deleted.
This usually happens around end/beginning of a line (the '\n' character).
Blocks: 719121
NS_QUERY_SELECTED_TEXT is using DOM selected range for getting the selection range. You should confirm if the selected range is correct, first.

http://mxr.mozilla.org/mozilla-central/source/content/events/src/nsContentEventHandler.cpp#96
tracking-fennec: --- → +
Priority: -- → P3
Assignee: nobody → cpeterson
Component: General → IME
Assignee: cpeterson → nobody
Whiteboard: [mentor=jchen][badfirstbug]
Mentor: nchen
Whiteboard: [mentor=jchen][badfirstbug] → [badfirstbug]
Do we have an example pad-page hyperlink?
It would be really nice to have some references allowing als normal users ot dind out whether his observations are this bug or something different.

For example <https://etherpad.mozilla.org/OhUGdNHs7j> with Android FF 38.0.5 on Samsung GT-P3110 with Android 4.1.2:
0. Open above mentioned Mozpad page
1. Below heading "Build-properties:" click before first character "a" of line
   "application=suite ..." so that caret flashes left from "a"
2. Type "a"
   Expected: "a" inserted as first character of text line
   Actual: "a" inserted as last character of line above behind "?"

Is that the problem we are talking about here?
(In reply to Rainer Bielefeld from comment #3)
Strike:     "allowing als normal users ot dind"
Replace by: "allowing a normal user to find"
want to work on this bug
Hi Amit, are you still working on this bug ?
May we know its progress ? 
Thank you !
tracking-fennec: + → ---
Priority: P3 → P5

Could anyone still reproduce this? comment #3 is gone away, so I don't know whether this issue still occurs.

If it wouldn't be reproducible with the latest beta, I think that we don't need to take a time for it.

We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.