rem: fp.setFilters(nsIFilePicker.filterText | nsIFilePicker.filterHTML | nsIFilePicker.filterAll); 
add: fp.appendFilters(nsIFilePicker.filterText | nsIFilePicker.filterHTML | nsIFilePicker.filterAll); 
context: function GetLocalFileURL(filterType){  var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker);  fp.init(window, editorShell.GetString("OpenHTMLFile"), nsIFilePicker.modeOpen);  if (filterType == "img")    fp.setFilters(nsIFilePicker.filterImages);  else    // While we allow "All", include filters that prefer HTML and Text files    fp.setFilters(nsIFilePicker.filterText | nsIFilePicker.filterHTML | nsIFilePicker.filterAll);    /* doesn't handle *.shtml files */  try {    fp.show();    /* need to handle cancel (uncaught exception at present) */  }  catch (ex) {    dump("filePicker.chooseInputFile threw an exception\n");    return null;  }    // Convert native filepath to the URL format  fs = GetScriptFileSpec();  if (fs)  {dump(fp.file.path+" = native file path\n");    fs.nativePath = fp.file.path;dump(fs.URLString+" = URL string\n");    return fs.URLString;  }  return null;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c165e6c65b89e212db918fabb409c6b4202ed9dd/EdDialogCommon.js/buggy/editor/ui/dialogs/content/EdDialogCommon.js