зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7dbad1ac58
Коммит
90583ec774
|
@ -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;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче