rem: fp.setFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | 
add: fp.appendFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | 
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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2804c173c560ade19a248b6f40dac0f2b5e0587d/openLocation.js/clean/xpfe/browser/resources/content/openLocation.js