Bug 1219004 - Improve error management in getFullAppByManifestURL r=ferjm

This commit is contained in:
Fabrice Desré 2015-10-28 09:00:50 -07:00
parent c43a4bf584
commit a409041ed0

View File

@ -4654,6 +4654,10 @@ this.DOMApplicationRegistry = {
}
return this.getManifestFor(aManifestURL).then((aManifest) => {
if (!aManifest) {
return Promise.reject("NoManifest");
}
let manifest = aEntryPoint && aManifest.entry_points &&
aManifest.entry_points[aEntryPoint]
? aManifest.entry_points[aEntryPoint]