Bug 985614 - trigger onsuccess for package install from marketplace r=myk

This commit is contained in:
Martyn Haigh 2014-05-23 12:39:37 +01:00
Родитель b15e8be65c
Коммит 140e8c7344
2 изменённых файлов: 3 добавлений и 2 удалений

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

@ -2524,7 +2524,9 @@ this.DOMApplicationRegistry = {
yield this._saveApps();
this.broadcastMessage("Webapps:AddApp", { id: id, app: appObject });
if (aData.isPackage && aData.autoInstall) {
// The presence of a requestID means that we have a page to update.
if (aData.isPackage && !aData.requestID) {
// Skip directly to onInstallSuccessAck, since there isn't
// a WebappsRegistry to receive Webapps:Install:Return:OK and respond
// Webapps:Install:Return:Ack when an app is being auto-installed.

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

@ -217,7 +217,6 @@ this.WebappManager = {
message.app.manifest = aData.manifest;
message.app.apkPackageName = aData.apkPackageName;
message.profilePath = aData.profilePath;
message.autoInstall = true;
message.mm = mm;
DOMApplicationRegistry.registryReady.then(() => {