Bug 833587 - Updating a packaged app to a new version that is too large to fit in the phone fails, but the original packaged app is lost (no longer launches) r=ferjm

This commit is contained in:
Fabrice Desré 2013-01-24 18:24:17 -08:00
Родитель 108b57be61
Коммит a6595e5b52
1 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -1980,10 +1980,18 @@ this.DOMApplicationRegistry = {
// try a new download.
app.downloadAvailable = false;
// If there were not enough storage to download the packaged app we
// If there were not enough storage to download the package we
// won't have a record of the download details, so we just set the
// installState to 'pending'.
app.installState = download ? download.previousState : "pending";
// installState to 'pending' at first download and to 'installed' when
// updating.
app.installState = download ? download.previousState
: aIsUpdate ? "installed"
: "pending";
if (app.staged) {
delete app.staged;
}
self.broadcastMessage("Webapps:PackageEvent",
{ type: "error",
manifestURL: aApp.manifestURL,