Bug 864589 - Show/hide text selection handles if a selection is programatically added/removed, r=margaret, ehsan