Bug 315245 - Can't install extensions; installDroppedInFiles throws during startup. Also fixes bug 321019 - ExtensionManager barfs if registry based install location references an XPI instead of a directory. r=darin

This commit is contained in:
rob_strong%exchangecode.com 2006-01-04 18:04:59 +00:00
Родитель 7dbad1ac58
Коммит 90583ec774
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -1267,8 +1267,10 @@ WinRegInstallLocation.prototype = {
.createInstance(nsILocalFile);
dir.initWithPath(key.readStringValue(id));
this._IDToDirMap[id] = dir;
this._DirToIDMap[dir.path] = id;
if (dir.exists() && dir.isDirectory()) {
this._IDToDirMap[id] = dir;
this._DirToIDMap[dir.path] = id;
}
}
},