rem: var folderField = document.getElementById("browserCacheDirectory"); var file = getFileOrFolderSpec(prefutilitiesBundle.getString("cachefolder"), true); if ( file && file != -1 ) folderField.value = file.unicodePath; 
add: var title = prefutilitiesBundle.getString("cachefolder"); fp.init(window, title, nsIFilePicker.modeGetFolder); fp.appendFilters(nsIFilePicker.filterAll);  var ret = fp.show(); if (ret == nsIFilePicker.returnOK) { var folderField = document.getElementById("browserCacheDirectory"); folderField.value = fp.file.unicodePath; } 
context: function prefCacheSelectFolder(){  var prefutilitiesBundle = document.getElementById("bundle_prefutilities");  var folderField = document.getElementById("browserCacheDirectory");  var file = getFileOrFolderSpec(prefutilitiesBundle.getString("cachefolder"),                                 true);  if ( file && file != -1 )    folderField.value = file.unicodePath;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/123bc557af92aa597ec961d7c645c6c5659043ed/pref-cache.js/clean/xpfe/components/prefwindow/resources/content/pref-cache.js