rem: var filePicker = Components.classes["component: 
add: var filePicker = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); 
context: function chooseApp(){  const nsIFilePicker = Components.interfaces.nsIFilePicker;  var filePicker = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker);  if (filePicker) {    const FP = Components.interfaces.nsIFilePicker    var windowTitle = gBundle.GetStringFromName("chooseHandler");    var programsFilter = gBundle.GetStringFromName("programsFilter");    filePicker.init(window, windowTitle, FP.modeOpen);    if (navigator.platform == "Windows")      filePicker.appendFilter(programsFilter, "*.exe; *.com");    else      filePicker.appendFilters(FP.filterAll);    var filePicked = filePicker.show();    if (filePicked == nsIFilePicker.returnOK && filePicker.file) {      var file = filePicker.file.QueryInterface(Components.interfaces.nsILocalFile);      gAppPath.value = file.path;      gAppPath.select();    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0257791053c2b38e1dfaf2ee11afae973e82e394/pref-applications-new.js/buggy/xpfe/components/prefwindow/resources/content/pref-applications-new.js