Bug 760205 - Text match highlight remains on dismissal of Find in Page. r=mfinkle
authorMargaret Leibovic <margaret.leibovic@gmail.com>
Fri, 01 Jun 2012 11:27:12 -0700
changeset 95548 90d655790bec2651054d74b4695c1171cb070267
parent 95547 27acbc53974699f0063f8e363c6433203fc33061
child 95549 33d170966fbd1608cc97e2a6dffa30d350d69eac
push id22819
push usereakhgari@mozilla.com
push dateSat, 02 Jun 2012 18:40:08 +0000
treeherdermozilla-central@f4a7c1a1f514 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs760205
milestone15.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
Bug 760205 - Text match highlight remains on dismissal of Find in Page. r=mfinkle
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -3248,16 +3248,17 @@ var FindHelper = {
 
   findClosed: function() {
     if (!this._findInProgress) {
       // this should never happen
       Cu.reportError("Warning: findClosed() called while _findInProgress is false!");
       // fall through and clean up anyway
     }
 
+    this._find.collapseSelection();
     this._find = null;
     this._findInProgress = false;
     this._targetTab = null;
     this._initialViewport = null;
     this._viewportChanged = false;
   },
 
   handleResult: function(aResult) {