зеркало из https://github.com/mozilla/gecko-dev.git
Bug 218840 add some null checks that were preventing autocomplete from working in message compose r=timeless sr=mscott
This commit is contained in:
Родитель
2823cb75b0
Коммит
74b0bafe98
|
@ -584,7 +584,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (firstReturn) {
|
if (firstReturn) {
|
||||||
this.view.mTree.beginUpdateBatch();
|
if (this.view.mTree)
|
||||||
|
this.view.mTree.beginUpdateBatch();
|
||||||
this.clearResults(false); // clear results, but don't repaint yet
|
this.clearResults(false); // clear results, but don't repaint yet
|
||||||
}
|
}
|
||||||
this.mLastResults[aSessionName] = aResults;
|
this.mLastResults[aSessionName] = aResults;
|
||||||
|
@ -597,7 +598,7 @@
|
||||||
// be sure to add our result elements before calling openResultPopuup as we need
|
// be sure to add our result elements before calling openResultPopuup as we need
|
||||||
// to know the total # of results found so far.
|
// to know the total # of results found so far.
|
||||||
this.addResultElements(aSessionName, aResults);
|
this.addResultElements(aSessionName, aResults);
|
||||||
if (firstReturn)
|
if (firstReturn && this.view.mTree)
|
||||||
this.view.mTree.endUpdateBatch();
|
this.view.mTree.endUpdateBatch();
|
||||||
this.openResultPopup();
|
this.openResultPopup();
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче