зеркало из https://github.com/mozilla/gecko-dev.git
Bug 323826 - Uninstall of an extension that contains a windows .lnk fails. r=bsmedberg
This commit is contained in:
Родитель
4cd142ba43
Коммит
f34baea140
|
@ -337,12 +337,13 @@ function getDirNoCreate(key, pathArray) {
|
|||
function getDirInternal(key, pathArray, shouldCreate) {
|
||||
var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"]
|
||||
.getService(Components.interfaces.nsIProperties);
|
||||
var dir = fileLocator.get(key, Components.interfaces.nsIFile);
|
||||
var dir = fileLocator.get(key, nsILocalFile);
|
||||
for (var i = 0; i < pathArray.length; ++i) {
|
||||
dir.append(pathArray[i]);
|
||||
if (shouldCreate && !dir.exists())
|
||||
dir.create(nsILocalFile.DIRECTORY_TYPE, PERMS_DIRECTORY);
|
||||
}
|
||||
dir.followLinks = false;
|
||||
return dir;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче