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)
Tracking
(firefox40 fixed)
RESOLVED
FIXED
Firefox 40
| Tracking | Status | |
|---|---|---|
| firefox40 | --- | fixed |
People
(Reporter: jchen, Assigned: jchen)
Details
Attachments
(1 file)
|
6.89 KB,
patch
|
esawin
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•11 years ago
|
||
For newly-focused text, we do a simple replacement, which will discard any previous text spans.
Attachment #8589365 -
Flags: review?(esawin)
Comment 2•11 years ago
|
||
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+
| Assignee | ||
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 40
Updated•5 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
•