rem: fp.setFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | nsIFilePicker.filterAll); 
add: fp.appendFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | nsIFilePicker.filterAll); 
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.filterHTML | nsIFilePicker.filterText | 			nsIFilePicker.filterAll | nsIFilePicker.filterImages | nsIFilePicker.filterXML);    if (fp.show() == nsIFilePicker.returnOK && fp.fileURL.spec && fp.fileURL.spec.length > 0)    {      dialog.input.value = fp.fileURL.spec;    }  } catch(ex) { }    doEnabling();  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c165e6c65b89e212db918fabb409c6b4202ed9dd/openLocation.js/buggy/xpfe/browser/resources/content/openLocation.js