зеркало из https://github.com/mozilla/gecko-dev.git
Bug 344189: don't cancel the search autocomplete timer from stopSearch, to avoid having the caller wait indefinitely (also avoids multiple tabs opening for a single search), r=mconnor (I forgot to check this file in)
This commit is contained in:
Родитель
fd061c8cbc
Коммит
8ce53c83e5
|
@ -344,6 +344,7 @@ SuggestAutoComplete.prototype = {
|
|||
|
||||
this._listener.onSearchResult(this, this._formHistoryResult);
|
||||
this._reset();
|
||||
this._formHistoryTimer = null;
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -391,9 +392,6 @@ SuggestAutoComplete.prototype = {
|
|||
* This clears all the per-request state.
|
||||
*/
|
||||
_reset: function SAC_reset() {
|
||||
if (this._formHistoryTimer)
|
||||
this._formHistoryTimer.cancel();
|
||||
this._formHistoryTimer = null;
|
||||
this._formHistoryResult = null;
|
||||
this._listener = null;
|
||||
this._request = null;
|
||||
|
|
Загрузка…
Ссылка в новой задаче