зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1030060 - Regression in Find-In-Page logic due to SelectionHandler change in bug 1011059, r=margaret, r=jchen
This commit is contained in:
Родитель
9ca2104e4c
Коммит
ae94bd1ca7
|
@ -387,6 +387,8 @@ var SelectionHandler = {
|
|||
*/
|
||||
_performSelection: function sh_performSelection(aOptions) {
|
||||
if (aOptions.mode == this.SELECT_AT_POINT) {
|
||||
// Clear any ranges selected outside SelectionHandler, by code such as Find-In-Page.
|
||||
this._contentWindow.getSelection().removeAllRanges();
|
||||
return this._domWinUtils.selectAtPoint(aOptions.x, aOptions.y, Ci.nsIDOMWindowUtils.SELECT_WORDNOSPACE);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче