From ebbef81b0eedc4a0a632f52ef630d25f21d1c9d8 Mon Sep 17 00:00:00 2001 From: Margaret Leibovic Date: Tue, 8 Jan 2013 13:18:47 +0100 Subject: [PATCH] Bug 827502 - When trying to reinstall a packaged app, get the id from the manifestURL. r=fabrice --- dom/apps/src/Webapps.jsm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dom/apps/src/Webapps.jsm b/dom/apps/src/Webapps.jsm index 4753008fc148..47bd09ed36eb 100644 --- a/dom/apps/src/Webapps.jsm +++ b/dom/apps/src/Webapps.jsm @@ -1504,6 +1504,11 @@ this.DOMApplicationRegistry = { let id = app.syncId || this._appId(app.origin); let localId = this.getAppLocalIdByManifestURL(manifestURL); + // For packaged apps, we need to get the id from the manifestURL. + if (localId && !id) { + id = this._appIdForManifestURL(manifestURL); + } + // Installing an application again is considered as an update. if (id) { isReinstall = true;