Bug 966988 - Fix bug 959420 in webapps actor getManifestFor usage. r=paul

This commit is contained in:
Alexandre Poirot 2014-02-05 13:29:52 -05:00
parent caa19883fd
commit d17c3302d4

View File

@ -565,12 +565,10 @@ WebappsActor.prototype = {
}
if (this._isAppAllowedForManifest(app.manifestURL)) {
let deferred = promise.defer();
reg.getManifestFor(manifestURL, function (manifest) {
return reg.getManifestFor(manifestURL).then(function (manifest) {
app.manifest = manifest;
deferred.resolve({app: app});
return {app: app};
});
return deferred.promise;
}
return { error: "forbidden" };
},