Bug 827502 - When trying to reinstall a packaged app, get the id from the manifestURL. r=fabrice

This commit is contained in:
Margaret Leibovic 2013-01-08 13:18:47 +01:00
parent 711578d06b
commit 7574c57b0a

View File

@ -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;