mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 429220: Recommended addon search is holding the add-ons manager alive too long. r=robstrong, a=beltzner
This commit is contained in:
parent
192a80626a
commit
21004a915a
@ -79,7 +79,7 @@ function AddonRepository() {
|
||||
|
||||
AddonRepository.prototype = {
|
||||
// The current set of results
|
||||
_addons: [],
|
||||
_addons: null,
|
||||
|
||||
// Whether we are currently searching or not
|
||||
_searching: false,
|
||||
@ -130,6 +130,8 @@ AddonRepository.prototype = {
|
||||
this._request.abort();
|
||||
this._request = null;
|
||||
}
|
||||
this._callback = null;
|
||||
this._addons = null;
|
||||
},
|
||||
|
||||
retrieveRecommendedAddons: function(aMaxResults, aCallback) {
|
||||
@ -181,6 +183,8 @@ AddonRepository.prototype = {
|
||||
this._request = null;
|
||||
this._callback.searchSucceeded(this._addons, this._addons.length,
|
||||
this._recommended ? -1 : aCount);
|
||||
this._callback = null;
|
||||
this._addons = null;
|
||||
},
|
||||
|
||||
// Notifies the callback of a failure
|
||||
@ -188,6 +192,8 @@ AddonRepository.prototype = {
|
||||
this._searching = false;
|
||||
this._request = null;
|
||||
this._callback.searchFailed();
|
||||
this._callback = null;
|
||||
this._addons = null;
|
||||
},
|
||||
|
||||
// Parses an add-on entry from an <addon> element
|
||||
|
Loading…
Reference in New Issue
Block a user