author | Mark Capella <markcapella@twcny.rr.com> |
Wed, 16 Jul 2014 03:23:05 -0400 | |
changeset 194337 | 451ee12473f76f23951d0a3446423c1850167ea6 |
parent 194336 | 4acab4ceb782eddced0eba402084052c7ac90f51 |
child 194338 | 0139b24156be0b0f65b0e4e922201871ed84b143 |
push id | 27143 |
push user | cbook@mozilla.com |
push date | Wed, 16 Jul 2014 13:54:56 +0000 |
treeherder | mozilla-central@f6e46d1fc903 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | margaret, jchen |
bugs | 1030060, 1011059 |
milestone | 33.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/mobile/android/chrome/content/SelectionHandler.js +++ b/mobile/android/chrome/content/SelectionHandler.js @@ -382,16 +382,18 @@ var SelectionHandler = { return true; }, /* * Called to perform a selection operation, given a target element, selection method, starting point etc. */ _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); } if (aOptions.mode != this.SELECT_ALL) { Cu.reportError("SelectionHandler.js: _performSelection() Invalid selection mode " + aOptions.mode); return false; }