mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 765270 - Don't try to clean up in findClosed if this._findInProgress is false. r=mfinkle
This commit is contained in:
parent
8d9b2a0c33
commit
8e6da4dc6b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user