Bug 913756 - Text Selection Handles displayed from position in previously navigated screen, r=margaret

This commit is contained in:
Mark Capella 2013-09-09 17:48:19 -04:00
parent 77b0b7658e
commit aac5d14e31

View File

@ -510,7 +510,9 @@ var SelectionHandler = {
// Remove our listener before we clear the selection
selection.QueryInterface(Ci.nsISelectionPrivate).removeSelectionListener(this);
// Clear selection without clearing the anchorNode or focusNode
selection.collapseToStart();
if (selection.rangeCount != 0) {
selection.collapseToStart();
}
}
},