rem:  var tempFileSpec = Components.classes["component: tempFileSpec.nativePath = fp.file.path;  dialog.input.value = tempFileSpec.URLString; 
add: dialog.input.value = fp.fileURL.spec; 
context: function onChooseFile() {  try {    var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker);    fp.init(window, bundle.GetStringFromName("chooseFileDialogTitle"), nsIFilePicker.modeOpen);    // When loading into Composer, direct user to prefer HTML files and text files:    if (dialog.openAppList.data == "2")      fp.setFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | nsIFilePicker.filterAll);    else      fp.setFilters(nsIFilePicker.filterAll);    fp.show();    if (fp.file.path && fp.file.path.length > 0)    {      // Hack to get a file: url from an nsIFile      var tempFileSpec = Components.classes["component://netscape/filespec"].createInstance(Components.interfaces.nsIFileSpec);      tempFileSpec.nativePath = fp.file.path;            dialog.input.value = tempFileSpec.URLString;    }  } catch(ex) { }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ad8f59cb37e0951b60605aa088b5c06514c1b987/openLocation.js/buggy/xpfe/browser/resources/content/openLocation.js