rem: if (!directory || !(sfile.exists() && sfile.isDirectory())) {  
add: if (!directory) { 
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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/649f02d0edbc3e2a6ae52d15a2890b3a08c87ca3/filepicker.js/buggy/toolkit/components/filepicker/content/filepicker.js