From 81e2685a604f6d45964e41a6f516285cbb267fbf Mon Sep 17 00:00:00 2001 From: Marshall Culpepper Date: Mon, 17 Dec 2012 17:23:14 -0600 Subject: [PATCH] Bug 812584: Part 1 - Always forward update download errors in B2G. r=bbondy --- toolkit/mozapps/update/nsUpdateService.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/toolkit/mozapps/update/nsUpdateService.js b/toolkit/mozapps/update/nsUpdateService.js index fbb28dca63d..86d5f166275 100644 --- a/toolkit/mozapps/update/nsUpdateService.js +++ b/toolkit/mozapps/update/nsUpdateService.js @@ -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; }