зеркало из https://github.com/mozilla/gecko-dev.git
Bug 913756 - Text Selection Handles displayed from position in previously navigated screen, r=margaret
This commit is contained in:
Родитель
6f1f0691b8
Коммит
fcdad9b32f
|
@ -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();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче