Bug 765270 - Don't try to clean up in findClosed if this._findInProgress is false. r=mfinkle

This commit is contained in:
Margaret Leibovic 2012-06-18 14:57:09 -07:00
parent 8d9b2a0c33
commit 8e6da4dc6b

View File

@ -3575,11 +3575,9 @@ 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
}
// If there's no find in progress, there's nothing to clean up
if (!this._findInProgress)
return;
this._find.collapseSelection();
this._find = null;