mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 813575 - [Apps] When canceling the download of a packaged app, the attribute downloading is still set to true;r=fabrice
This commit is contained in:
parent
47710276d9
commit
0b4804d0b8
@ -764,7 +764,7 @@ this.DOMApplicationRegistry = {
|
||||
this._saveApps((function() {
|
||||
this.broadcastMessage("Webapps:PackageEvent",
|
||||
{ type: "canceled",
|
||||
manifestURL: aApp.manifestURL,
|
||||
manifestURL: app.manifestURL,
|
||||
app: app,
|
||||
error: "DOWNLOAD_CANCELED" });
|
||||
}).bind(this));
|
||||
@ -1314,10 +1314,18 @@ this.DOMApplicationRegistry = {
|
||||
try {
|
||||
dir.remove(true);
|
||||
} catch (e) { }
|
||||
self.broadcastMessage("Webapps:PackageEvent",
|
||||
{ type: "error",
|
||||
manifestURL: aApp.manifestURL,
|
||||
error: aError });
|
||||
|
||||
// We avoid notifying the error to the DOM side if the app download
|
||||
// was cancelled via cancelDownload, which already sends its own
|
||||
// notification.
|
||||
if (!app.downloading && !app.downloadAvailable && !app.downloadSize) {
|
||||
return;
|
||||
}
|
||||
|
||||
self.broadcastMessage("Webapps:PackageEvent",
|
||||
{ type: "error",
|
||||
manifestURL: aApp.manifestURL,
|
||||
error: aError });
|
||||
}
|
||||
|
||||
function getInferedStatus() {
|
||||
|
Loading…
Reference in New Issue
Block a user