Bug 959420 - Followup to fix the last saveApps call introduced in bug 757226. r=fabrice

This commit is contained in:
Marco Castelluccio 2014-01-16 17:00:29 -08:00
parent 582442ebbd
commit 9d5e2d7cfb

View File

@ -3631,7 +3631,7 @@ onInstallSuccessAck: function onInstallSuccessAck(aManifestURL,
app.receipts.push(receipt);
this._saveApps(function() {
this._saveApps().then(() => {
aData.receipts = app.receipts;
aMm.sendAsyncMessage("Webapps:AddReceipt:Return:OK", aData);
});
@ -3666,7 +3666,7 @@ onInstallSuccessAck: function onInstallSuccessAck(aManifestURL,
app.receipts.splice(index, 1);
this._saveApps(function() {
this._saveApps().then(() => {
aData.receipts = app.receipts;
aMm.sendAsyncMessage("Webapps:RemoveReceipt:Return:OK", aData);
});
@ -3709,7 +3709,7 @@ onInstallSuccessAck: function onInstallSuccessAck(aManifestURL,
app.receipts[oldIndex] = newReceipt;
this._saveApps(function() {
this._saveApps().then(() => {
aData.receipts = app.receipts;
aMm.sendAsyncMessage("Webapps:ReplaceReceipt:Return:OK", aData);
});