mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 323826 - Uninstall of an extension that contains a windows .lnk fails. r=bsmedberg
This commit is contained in:
parent
4cd142ba43
commit
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user