rem: var fp = Components.classes["component: 
add: var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); 
context: function PrefCacheSelectFolder() {    // Get filespecwithui component.       try {    var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker);    /* XXX    no title here */    fp.init(window, "", nsIFilePicker.modeGetFolder);    fp.appendFilters(nsIFilePicker.filterAll);    fp.show();    var field = document.getElementById("pref:string:browser.cache.directory");    field.setAttribute("value", fp.file.unicodePath);  } catch(ex) { }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0257791053c2b38e1dfaf2ee11afae973e82e394/PrefsWindow.js/clean/xpfe/components/prefwindow/resources/content/PrefsWindow.js