mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Fixing 48752 - filepicker doesn't show any files. This is fallout from
the recent changes to nsDirectoryService. r=disttsc@bart.nl.
This commit is contained in:
parent
24717ecaca
commit
faa949e960
@ -86,7 +86,7 @@ function onLoad() {
|
||||
// Start in the user's home directory
|
||||
var dirServiceProvider = Components.classes[nsIDirectoryServiceProvider_PROGID].getService().QueryInterface(nsIDirectoryServiceProvider);
|
||||
var persistent = new Object();
|
||||
var homeDir = dirServiceProvider.getFile("system.HomeDirectory", persistent);
|
||||
var homeDir = dirServiceProvider.getFile("Home", persistent);
|
||||
sfile.initWithPath(homeDir.path);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user