зеркало из https://github.com/mozilla/gecko-dev.git
Followup to bug 443370 to fix handling of RESULT_NOMATCH_ONGOING r=ajschult
This commit is contained in:
Родитель
e9dae6c923
Коммит
0b251998ee
|
@ -455,9 +455,8 @@
|
||||||
]]></body>
|
]]></body>
|
||||||
</method>
|
</method>
|
||||||
|
|
||||||
<!-- get the total number of results in a specific session or overall if session is null-->
|
<!-- get the total number of results overall -->
|
||||||
<method name="getResultCount">
|
<method name="getResultCount">
|
||||||
<parameter name="aSession"/>
|
|
||||||
<body><![CDATA[
|
<body><![CDATA[
|
||||||
return this.view.rowCount;
|
return this.view.rowCount;
|
||||||
]]></body>
|
]]></body>
|
||||||
|
@ -606,7 +605,6 @@
|
||||||
this.isSearching = true;
|
this.isSearching = true;
|
||||||
this.mFirstReturn = true;
|
this.mFirstReturn = true;
|
||||||
this.mSessionReturns = this.sessionCount;
|
this.mSessionReturns = this.sessionCount;
|
||||||
this.mFailureCount = 0;
|
|
||||||
this.mFailureItems = 0;
|
this.mFailureItems = 0;
|
||||||
this.mDefaultMatchFilled = false; // clear out our prefill state.
|
this.mDefaultMatchFilled = false; // clear out our prefill state.
|
||||||
|
|
||||||
|
@ -711,10 +709,8 @@
|
||||||
if (this.mSessionReturns == 0)
|
if (this.mSessionReturns == 0)
|
||||||
this.postSearchCleanup();
|
this.postSearchCleanup();
|
||||||
|
|
||||||
++this.mFailureCount;
|
|
||||||
|
|
||||||
// if all searches are done and they all failed...
|
// if all searches are done and they all failed...
|
||||||
if (this.mSessionReturns == 0 && this.mFailureCount == this.sessionCount) {
|
if (this.mSessionReturns == 0 && this.getResultCount() == 0) {
|
||||||
if (this.minResultsForPopup == 0) {
|
if (this.minResultsForPopup == 0) {
|
||||||
this.clearResults(true); // clear data and repaint empty
|
this.clearResults(true); // clear data and repaint empty
|
||||||
this.openResultPopup();
|
this.openResultPopup();
|
||||||
|
@ -1167,7 +1163,7 @@
|
||||||
<method name="openResultPopup">
|
<method name="openResultPopup">
|
||||||
<body><![CDATA[
|
<body><![CDATA[
|
||||||
if (!this.mMenuOpen && this.focused &&
|
if (!this.mMenuOpen && this.focused &&
|
||||||
(this.getResultCount("") >= this.minResultsForPopup
|
(this.getResultCount() >= this.minResultsForPopup
|
||||||
|| this.mFailureItems)) {
|
|| this.mFailureItems)) {
|
||||||
var w = this.boxObject.width;
|
var w = this.boxObject.width;
|
||||||
if (w != this.resultsPopup.boxObject.width)
|
if (w != this.resultsPopup.boxObject.width)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче