mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 899286: clear timers that are still running when the findbar is closed or destroyed. r=dao
This commit is contained in:
parent
374787bf31
commit
1ca78048b2
@ -431,6 +431,30 @@
|
||||
this._observer);
|
||||
prefsvc.removeObserver("accessibility.typeaheadfind.casesensitive",
|
||||
this._observer);
|
||||
|
||||
// Clear all timers that might still be running.
|
||||
this._cancelTimers();
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
<method name="_cancelTimers">
|
||||
<body><![CDATA[
|
||||
if (this._flashFindBarTimeout) {
|
||||
clearInterval(this._flashFindBarTimeout);
|
||||
this._flashFindBarTimeout = null;
|
||||
}
|
||||
if (this._quickFindTimeout) {
|
||||
clearTimeout(this._quickFindTimeout);
|
||||
this._quickFindTimeout = null;
|
||||
}
|
||||
if (this._highlightTimeout) {
|
||||
clearTimeout(this._highlightTimeout);
|
||||
this._highlightTimeout = null;
|
||||
}
|
||||
if (this._findResetTimeout) {
|
||||
clearTimeout(this._findResetTimeout);
|
||||
this._findResetTimeout = null;
|
||||
}
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
@ -1217,12 +1241,9 @@
|
||||
fastFind.setSelectionModeAndRepaint
|
||||
(this.nsISelectionController.SELECTION_ON);
|
||||
this._setFoundLink(null);
|
||||
this._cancelTimers();
|
||||
this._foundEditable = null;
|
||||
this._currentWindow = null;
|
||||
if (this._quickFindTimeout) {
|
||||
clearTimeout(this._quickFindTimeout);
|
||||
this._quickFindTimeout = null;
|
||||
}
|
||||
|
||||
this._findFailedString = null;
|
||||
]]></body>
|
||||
|
Loading…
Reference in New Issue
Block a user