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
Родитель 259ed17fda
Коммит ebbef81b0e
1 изменённых файлов: 5 добавлений и 0 удалений

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

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