rem: var file = Components.classes[nsILocalFile_PROGID].createInstance(nsILocalFile); var path = e.target.selectedItems[0].firstChild.getAttribute("path"); file.initWithPath(path); 
add: var file = URLpathToFile(e.target.selectedItems[0].firstChild.getAttribute("path"));  
context: function onSelect(e) {  if (e.target.selectedItems.length != 1)    return;  var file = Components.classes[nsILocalFile_PROGID].createInstance(nsILocalFile);  var path = e.target.selectedItems[0].firstChild.getAttribute("path");  file.initWithPath(path);  if (file.isFile()) {    textInput = document.getElementById("textInput");    textInput.value = file.leafName;    lastClicked = file.leafName;  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/64567f464649661646b48369f72d0ae3f6d60cfc/filepicker.js/buggy/xpfe/components/filepicker/res/content/filepicker.js