rem: var initialDir = prefWindow.getPref("localfile", kCacheParentDirPref);   if (initialDir != "!/!ERROR_UNDEFINED_PREF!/!") fp.displayDirectory = initialDir; 
add: fp.displayDirectory = dir; 
context: function prefCacheSelectFolder(){  var fp = Components.classes["@mozilla.org/filepicker;1"]                     .createInstance(nsIFilePicker);  var prefWindow = parent.hPrefWindow;  var prefutilitiesBundle = document.getElementById("bundle_prefutilities");  var title = prefutilitiesBundle.getString("cachefolder");  fp.init(window, title, nsIFilePicker.modeGetFolder);  var initialDir = prefWindow.getPref("localfile", kCacheParentDirPref);  // Pref should always be set but just in case...  if (initialDir != "!/!ERROR_UNDEFINED_PREF!/!")    fp.displayDirectory = initialDir;  fp.appendFilters(nsIFilePicker.filterAll);  var ret = fp.show();  if (ret == nsIFilePicker.returnOK) {    var localFile = fp.file.QueryInterface(nsILocalFile);    prefWindow.setPref("localfile", kCacheParentDirPref, localFile);    gFolderField.value = (/Mac/.test(navigator.platform)) ? fp.file.leafName : fp.file.path;  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/aca1ca83cf8e74b68dbf90a1dfcbb84d51278aee/pref-cache.js/clean/suite/common/pref/pref-cache.js