Closed Bug 1152124 Opened 11 years ago Closed 11 years ago

Text spans are not always cleared when switching focus

Categories

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

All
Android
defect
Not set
normal

Tracking

(firefox40 fixed)

RESOLVED FIXED
Firefox 40
Tracking Status
firefox40 --- fixed

People

(Reporter: jchen, Assigned: jchen)

Details

Attachments

(1 file)

Sometimes, when focus changes to the current editor, we receive NOTIFY_IME_OF_FOCUS and NOTIFY_IME_OF_BLUR notifications. Then we send a text change notification to replace previous text with the new editor's text. However, sometimes the previous text's spans are left behind and we should clear them.
For newly-focused text, we do a simple replacement, which will discard any previous text spans.
Attachment #8589365 - Flags: review?(esawin)
Comment on attachment 8589365 [details] [diff] [review] Clear spans when initializing for newly-focused editor (v1) Review of attachment 8589365 [details] [diff] [review]: ----------------------------------------------------------------- This looks good, I think it might help with some of the issues I've observed, too. On a side note: we should look into refactoring the span-recovering code block sometime, the selection "clamping" could be extracted and simplified for improved readability.
Attachment #8589365 - Flags: review?(esawin) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 40
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: