Bug 812584: Part 1 - Always forward update download errors in B2G. r=bbondy

This commit is contained in:
Marshall Culpepper 2012-12-17 17:23:14 -06:00
parent 16fb068790
commit 81e2685a60

View File

@ -3651,6 +3651,14 @@ Downloader.prototype = {
prompter.showUpdateError(this._update);
}
}
#ifdef MOZ_WIDGET_GONK
// We always forward errors in B2G, since Gaia controls the update UI
var prompter = Cc["@mozilla.org/updates/update-prompt;1"].
createInstance(Ci.nsIUpdatePrompt);
prompter.showUpdateError(this._update);
#endif
// Prevent leaking the update object (bug 454964).
this._update = null;
}