Closed Bug 767065 Opened 12 years ago Closed 12 years ago

Text selection handles remain after selection is programatically collapsed

Categories

(Firefox for Android Graveyard :: Text Selection, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox15 verified, firefox16 verified, firefox17 verified)

VERIFIED FIXED
Firefox 16
Tracking Status
firefox15 --- verified
firefox16 --- verified
firefox17 --- verified

People

(Reporter: eeejay, Assigned: Margaret)

References

Details

Attachments

(2 files)

Attached file Test case
STR:
1. Load given file.
2. Select a word via long text.
3. After a few seconds selection is collapsed.
4. Handles awkwardly remain, with no highlighted text in between them.

Expected result: Handles should go away along with selection.
OS: Linux → Android
Hardware: x86_64 → ARM
Attached patch patchSplinter Review
I was running into a problem where a normal endSelection call was clearing the selection, then my listener was firing and calling endSelection again. I tried fixing this by checking _active in the listener, but that didn't work because _active was being flipped at the bottom of the method. To fix this we should flip _active at the beginning of endSelection, and we never want to be executing the rest of this method if there's no active selection, so I added a check to bail.
Assignee: nobody → margaret.leibovic
Attachment #636853 - Flags: review?(mbrubeck)
Attachment #636853 - Flags: review?(mbrubeck) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/d095c0213dc8
Target Milestone: --- → Firefox 16
https://hg.mozilla.org/mozilla-central/rev/d095c0213dc8
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Uplifted to aurora as part of a roll-up patch:
https://hg.mozilla.org/releases/mozilla-aurora/rev/2fb0a358eaf6
Component: General → Text Selection
Status: RESOLVED → VERIFIED
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: