Bug 326238 - xulrunner fails if <installdir>/extensions is not available and cannot be written. r=mconnor

This commit is contained in:
rob_strong%exchangecode.com 2006-02-08 17:11:25 +00:00
Родитель cf8c7987af
Коммит 370ffe8d3c
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -944,7 +944,13 @@ function DirectoryInstallLocation(name, location, restricted, priority) {
throw new Error("location must be a directoy!");
}
else {
location.create(nsILocalFile.DIRECTORY_TYPE, 0775);
try {
location.create(nsILocalFile.DIRECTORY_TYPE, 0775);
}
catch (e) {
LOG("DirectoryInstallLocation: failed to create location " +
" directory = " + location.path + ", exception = " + e + "\n");
}
}
this._location = location;