зеркало из https://github.com/mozilla/gecko-dev.git
Bug 985614 - trigger onsuccess for package install from marketplace r=myk
This commit is contained in:
Родитель
b15e8be65c
Коммит
140e8c7344
|
@ -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(() => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче