rem:  var dirServiceProvider = Components.classes[nsIDirectoryServiceProvider_CONTRACTID] .getService(nsIDirectoryServiceProvider); var persistent = new Object(); homeDir = dirServiceProvider.getFile("Home", persistent); 
add:  var dirService = Components.classes[NS_DIRECTORYSERVICE_CONTRACTID] .getService(nsIProperties); homeDir = dirService.get("Home", Components.interfaces.nsIFile); 
context: function setInitialDirectory(directory){  // get the home dir  var dirServiceProvider = Components.classes[nsIDirectoryServiceProvider_CONTRACTID]                                     .getService(nsIDirectoryServiceProvider);  var persistent = new Object();  homeDir = dirServiceProvider.getFile("Home", persistent);  if (directory) {    sfile.initWithPath(directory);  }  if (!directory || !(sfile.exists() && sfile.isDirectory())) {    // Start in the user's home directory    sfile.initWithPath(homeDir.path);  }  gotoDirectory(sfile);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/9d3c4cdf4e6367b453755924c52c10d788429d0f/filepicker.js/clean/toolkit/components/filepicker/content/filepicker.js