Closed Bug 1089979 Opened 10 years ago Closed 10 years ago

[Text selection] Selection Bubble remains after focus out and next focus is nothing

Categories

(Core :: DOM: Selection, defect, P2)

ARM
Gonk (Firefox OS)
defect

Tracking

()

RESOLVED DUPLICATE of bug 1090008

People

(Reporter: m_kato, Unassigned)

References

Details

Attachments

(1 file)

When focus out / blur, selection's display mode is hidden by nsTextEditorState::HideSelectionIfBlurred().  But when it is hidden, nsISelectionListener isn't called.  So selectionchange event isn't fired.

If next is focus-able area such as text box, selection is reset by TakeFocus().  So this doesn't occur.


- Step
1. Launch Contact of B2G
2. focus 1st editbox, input text and select this text by [Select All]
3. tap non focused area.

- Result
selection caret and selection is hidden, but selection bubble is remain on screen.

- Expected Result
selection bubble disappear since selection is hidden.
One of patches in bug 1029943 would hide caret if element is blurred. But that bug doesn't land yet. You can apply it manually and see if this issue happened.
(In reply to Morris Tseng [:mtseng] from comment #1)
> One of patches in bug 1029943 would hide caret if element is blurred. But
> that bug doesn't land yet. You can apply it manually and see if this issue
> happened.

Even if bug 1029943 is fixed, this occurs.  That code hides selection caret.  But there is still no selectionchange event by that fix.
I'm working on bug 1090008 and will move the bubble logic inside SelectionCaret. And then we have better control of bubble synchronization among different processes.
Depends on: 1090008
Priority: -- → P2
I wrote a wip version for this issue and it works well. I'll refine this patch after bug 1090008 has landed.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: