rem: var directoryServerString = gPrefInt.CopyUnicharPref(directoryServer + ".description"); 
add: var directoryServerString = gPrefInt.getComplexValue(directoryServer + ".description", Components.interfaces.nsISupportsWString); 
context: function setupDirectoriesList(){  var override = document.getElementById("identity.overrideGlobalPref").getAttribute("value");  var autocomplete = document.getElementById("ldapAutocomplete");  // useGlobalFlag is set when user changes the selectedItem on the radio button and switches  // to a different pane and switches back in Mail/news AccountSettings  var useGlobalFlag = document.getElementById("overrideGlobalPref").getAttribute("value");  // directoryServerFlag is set when user changes the server to None and switches  // to a different pane and switches back in Mail/news AccountSettings  var directoryServerFlag = document.getElementById("directoryServer").getAttribute("value");  if(override == "true" && !useGlobalFlag)    autocomplete.selectedItem = document.getElementById("directories");  else    autocomplete.selectedItem = document.getElementById("useGlobalPref");  var directoriesList = document.getElementById("directoriesList");  var directoryServer =         document.getElementById("identity.directoryServer").getAttribute('value');  try {    var directoryServerString = gPrefInt.CopyUnicharPref(directoryServer + ".description");  }  catch(ex) {}  if (directoryServerFlag || !directoryServerString) {    document.getElementById("identity.directoryServer").setAttribute("value", "");    directoryServer = "";    var addressBookBundle = document.getElementById("bundle_addressBook");    directoryServerString = addressBookBundle.getString("directoriesListItemNone");  }  directoriesList.value = directoryServer;  directoriesList.label = directoryServerString;  gFromGlobalPref = false;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/faf03ce445712b372523f881cc3144cfadc7a611/pref-directory.js/clean/mailnews/addrbook/prefs/resources/content/pref-directory.js