rem:  return fp.file ? fp.file.URL : null; 
add: var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);   return fp.file ? ioService.getURLSpecFromFile(fp.file) : null; 
context: function GetLocalFileURL(filterType){  var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);  var fileType = "html";  if (filterType == "img")  {    fp.init(window, GetString("SelectImageFile"), nsIFilePicker.modeOpen);    fp.appendFilters(nsIFilePicker.filterImages);    fileType = "image";  }  // Current usage of this is in Link dialog,  //  where we always want HTML first  else if (filterType.indexOf("html") == 0)  {    fp.init(window, GetString("OpenHTMLFile"), nsIFilePicker.modeOpen);    // When loading into Composer, direct user to prefer HTML files and text files,    //   so we call separately to control the order of the filter list    fp.appendFilters(nsIFilePicker.filterHTML);    fp.appendFilters(nsIFilePicker.filterText);    // Link dialog also allows linking to images    if (filterType.indexOf("img") > 0)      fp.appendFilters(nsIFilePicker.filterImages);  }  // Default or last filter is "All Files"  fp.appendFilters(nsIFilePicker.filterAll);  // set the file picker's current directory to last-opened location saved in prefs  SetFilePickerDirectory(fp, fileType);  /* doesn't handle *.shtml files */  try {    var ret = fp.show();    if (ret == nsIFilePicker.returnCancel)      return null;  }  catch (ex) {    dump("filePicker.chooseInputFile threw an exception\n");    return null;  }  SaveFilePickerDirectory(fp, fileType);    // Note: fp.file.URL = fp.fileURL.spec  return fp.file ? fp.file.URL : null;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3d9e878c3473df2bdd78d84808b8168ac005e5aa/EdDialogCommon.js/clean/editor/ui/dialogs/content/EdDialogCommon.js