Closed Bug 1264894 Opened 8 years ago Closed 3 years ago

Composition not resumed "correctly" if DOM of a rich text area is modified while typing, duplicated content can happen

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: hsteen, Unassigned)

References

()

Details

While typing in a rich text editor, the DOM may change while we type due to JS running. If the DOM changes, we seem to terminate the composition (which may seem like the best choice) - but

1) Somehow we don't terminate it "cleanly" so certain characters are duplicated. Thus typing "testing mozilla firefox" into the given test case tends to come out as "testing mmozilla ffirefox"

2) Chrome is able to not terminate composition when this script runs - giving the impression that you continue typing the same string/word even though the JS just replaced the DOM and restored the selection/cursor to (sort of) the same place. This is a nicer user experience because it works better with things like spellcheck, autocomplete.

Test case: https://bugzilla.mozilla.org/attachment.cgi?id=8741331
Spun off from bug 1258803. As this affects Facebook if you run Firefox on a tablet (getting the FB desktop site) it might be important. I have no idea if Firefox on tablets is a product we're pushing. If it is, we should make this bug really high pri..
See Also: → 1258803
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.