зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1188688 - Frequent "TypeError: this._searchSuggestionController is null" when using the location bar. r=ttaubert
--HG-- extra : commitid : 4GgebUU3vpj
This commit is contained in:
Родитель
ec86dfbe2f
Коммит
f6079ea3fd
|
@ -941,6 +941,9 @@ Search.prototype = {
|
|||
);
|
||||
let promise = this._searchSuggestionController.fetchCompletePromise
|
||||
.then(() => {
|
||||
// The search has been canceled already.
|
||||
if (!this._searchSuggestionController)
|
||||
return;
|
||||
if (this._searchSuggestionController.resultsCount >= 0 &&
|
||||
this._searchSuggestionController.resultsCount < 2) {
|
||||
// The original string is used to properly compare with the next search.
|
||||
|
|
Загрузка…
Ссылка в новой задаче