rem: .createInstance(nsIFilePicker); 
add: .createInstance(nsIFilePicker); 
context: function Browse(){  var fp = Components.classes["@mozilla.org/filepicker;1"]                       .createInstance(nsIFilePicker);  // XXX todo, persist the last sound directory and pass it in  // XXX todo filter by .wav  fp.init(window, document.getElementById("browse").getAttribute("filepickertitle"), nsIFilePicker.modeOpen);  fp.appendFilters(nsIFilePicker.filterAll);  var ret = fp.show();  if (ret == nsIFilePicker.returnOK) {    var mailnewsSoundFileUrl = document.getElementById("mailnewsSoundFileUrl");    // convert the nsILocalFile into a nsIFile url     mailnewsSoundFileUrl.value = fp.fileURL.spec;  }  document.getElementById("preview").disabled = (document.getElementById("mailnewsSoundFileUrl").value == "");}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/71fa6591699ef227ac68a8704b3189e4936c3cd5/pref-download.js/buggy/suite/common/pref/pref-download.js