Bug 828835 - Return form installPreinstalledApp when coreAppsDir dosen't exist. r=fabrice

This commit is contained in:
Patrick Wang 2013-01-10 15:53:17 +08:00
parent 858069c9e0
commit 0d4ba3807a

View File

@ -224,6 +224,9 @@ this.DOMApplicationRegistry = {
let baseDir;
try {
baseDir = FileUtils.getDir("coreAppsDir", ["webapps", aId], false);
if (!baseDir.exists()) {
return;
}
} catch(e) {
// In ENG builds, we don't have apps in coreAppsDir.
return;