rem: try { prefValue = gPrefInt.GetBoolPref(gCurrentDirectoryString+ ".auth.enabled"); } catch(ex) { prefValue = false; } if (prefValue) { document.getElementById("login").checked = true; } 
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.getService(Components.interfaces.nsILDAPURL);  }  catch (ex) {    dump("failed to get ldap url service!\n");    ldapUrl = null;  }  try{    var prefValue = gPrefInt.CopyCharPref(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;      document.getElementById("basedn").value = ldapUrl.dn;      document.getElementById("search").value = ldapUrl.filter;      switch(ldapUrl.scope)      {        case 1:          document.getElementById("one").checked = true; break;        case 2:          document.getElementById("sub").checked = true; break;      }    }    try {      prefValue = gPrefInt.GetIntPref(gCurrentDirectoryString+ ".maxHits");    }    catch(ex) {      prefValue = gMaxHits;    }    document.getElementById("results").value = prefValue;    try {      prefValue = gPrefInt.GetBoolPref(gCurrentDirectoryString+ ".auth.enabled");    }    catch(ex) {      prefValue = false;    }    if (prefValue) {      document.getElementById("login").checked = true;    }  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/32941c4012d3075905de4a37ca688e5e8161c495/pref-directory-add.js/clean/mailnews/addrbook/prefs/resources/content/pref-directory-add.js