rem: prefValue = gPrefInt.CopyCharPref(gCurrentDirectoryString +".uri"); 
add: prefValue = gPrefInt.getCharPref(gCurrentDirectoryString +".uri"); 
context: function fillSettings(){  try {    gPrefInt = Components.classes["@mozilla.org/preferences;1"];    gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref);  }  catch (ex) {    dump("failed to get prefs service!\n");    gPrefInt = null;  }  try {    var ldapUrl = Components.classes["@mozilla.org/network/ldap-url;1"];    ldapUrl = ldapUrl.createInstance().              QueryInterface(Components.interfaces.nsILDAPURL);  }  catch (ex) {    dump("failed to get ldap url service!\n");    ldapUrl = null;  }  try{    var prefValue = gPrefInt.CopyUnicharPref(gCurrentDirectoryString +".description");  }  catch(ex){    prefValue="";  }    if (ldapUrl && prefValue)  {    document.getElementById("description").value = prefValue;    try{      prefValue = gPrefInt.CopyCharPref(gCurrentDirectoryString +".uri");    }    catch(ex){      prefValue="";    }    if (prefValue)    {      ldapUrl.spec = prefValue;      document.getElementById("hostname").value = ldapUrl.host;      document.getElementById("port").value = ldapUrl.port;      try {        gLdapService = Components.classes[            "@mozilla.org/network/ldap-service;1"].            getService(Components.interfaces.nsILDAPService);      }      catch (ex)      {         dump("failed to get ldapService \n");        gLdapService = null;      }      if (gLdapService) {        document.getElementById("basedn").value = gLdapService.                                          UTF8toUCS2(ldapUrl.dn);        document.getElementById("search").value = gLdapService.                                          UTF8toUCS2(ldapUrl.filter);      }      switch(ldapUrl.scope)      {        case 1:          document.getElementById("one").checked = true; break;        default:          document.getElementById("sub").checked = true; break;      }    }    try {      prefValue = gPrefInt.GetIntPref(gCurrentDirectoryString+ ".maxHits");    }    catch(ex) {      prefValue = gMaxHits;    }    document.getElementById("results").value = prefValue;  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/faf03ce445712b372523f881cc3144cfadc7a611/pref-directory-add.js/clean/mailnews/addrbook/prefs/resources/content/pref-directory-add.js