rem: return fp.file ? getURLSpecFromFile(fp.file) : null; 
add: var ioService = GetIOService(); if (ioService && ioService.getURLSpecFromFile) return fp.file ? ioService.getURLSpecFromFile(fp.file) : null; else return fp.file ? getURLSpecFromFile(fp.file) : null; 
context: function getLocalFileURL(openOnly){  var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);  var fileType = "*";  if (openOnly)    fp.init(window, "Select a CSS file", nsIFilePicker.modeOpen);  else    fp.init(window, "Select a CSS file", nsIFilePicker.modeSave);    // 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);    return fp.file ? getURLSpecFromFile(fp.file) : null;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ea42249e7ceda44ee4df8f09d5ccceb37218f450/EdCssProps-utils.js/buggy/extensions/editor/cascades/resources/content/EdCssProps-utils.js