rem: dir = dirSvc.get("ProfD", nsILocalFile);   prefWindow.setPref("localfile", kCacheParentDirPref, dir); 
add: if (dirSvc.has("ProfLD")) dir = dirSvc.get("ProfLD", nsILocalFile); else dir = dirSvc.get("ProfD", nsILocalFile); 
context: function Startup(){  var prefWindow = parent.hPrefWindow;  gFolderField = document.getElementById("browserCacheDiskCacheFolder");  var dir = prefWindow.getPref("localfile", kCacheParentDirPref);  if (dir == "!/!ERROR_UNDEFINED_PREF!/!")  {    try    {      // no disk cache folder found; default to profile directory      var dirSvc = Components.classes["@mozilla.org/file/directory_service;1"]                             .getService(nsIProperties);      dir = dirSvc.get("ProfD", nsILocalFile);      // now remember the new assumption      prefWindow.setPref("localfile", kCacheParentDirPref, dir);    }    catch (ex)    {      dir = null;    }  }  // if both pref and dir svc fail leave this field blank else show directory  if (dir)    gFolderField.value = (/Mac/.test(navigator.platform)) ? dir.leafName : dir.path;  document.getElementById("chooseDiskCacheFolder").disabled =    prefWindow.getPrefIsLocked(kCacheParentDirPref);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/aca1ca83cf8e74b68dbf90a1dfcbb84d51278aee/pref-cache.js/clean/suite/common/pref/pref-cache.js