rem: var dir = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); dir.initWithPath(folderName.getAttribute("path")); 
add: var dir = getLocalFileFromNativePathOrUrl(folderName.getAttribute("path")); 
context: function onDownloadShowFolder(){  var folderName = document.getElementById("saveToFolder");  var dir = Components.classes["@mozilla.org/file/local;1"]                      .createInstance(Components.interfaces.nsILocalFile);  dir.initWithPath(folderName.getAttribute("path"));  if (!dir.exists())   dir.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);  try {    dir.reveal();  } catch (ex) {    // if nsILocalFile::Reveal failed (eg it currently just returns an    // error on unix), just open the folder in a browser window    openExternal(dir.path);  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e78348af74b924bd0701a2a0ed39496c91ae38de/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js