rem: prefs = Components.classes["@mozilla.org/preferences;1"].getService(nsIPref); 
context: function onLoad(){  var crlEntry;  var i;  crlManager = Components.classes[nsCRLManager].getService(nsICRLManager);  prefs = Components.classes["@mozilla.org/preferences;1"].getService(nsIPref);  crls = crlManager.getCrls();  var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties");  var autoupdateEnabledString;  var autoupdateErrCntString;  for (i=0; i<crls.length; i++) {    crlEntry = crls.queryElementAt(i, nsICRLInfo);    var org = crlEntry.organization;    var orgUnit = crlEntry.organizationalUnit;    var lastUpdate = crlEntry.lastUpdateLocale;    var nextUpdate = crlEntry.nextUpdateLocale;    autoupdateEnabledString    = autoupdateEnabledBaseString + crlEntry.nameInDb;    autoupdateErrCntString    = autoupdateErrCntBaseString + crlEntry.nameInDb;    var enabled = false;    var enabledStr = bundle.GetStringFromName("crlAutoupdateNotEnabled");    var status = "";    try{      enabled = prefs.GetBoolPref(autoupdateEnabledString)      if(enabled){        enabledStr = bundle.GetStringFromName("crlAutoupdateEnabled");      }      var cnt;      cnt = prefs.GetIntPref(autoupdateErrCntString);      if(cnt > 0){        status = bundle.GetStringFromName("crlAutoupdateFailed");      } else {        status = bundle.GetStringFromName("crlAutoupdateOk");      }    }catch(exception){}        AddItem("crlList", [org, orgUnit, lastUpdate, nextUpdate, enabledStr, status], "crltree_", i);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/20c1620040885ba8fd7aeebe4013a8d5bdc7a3a2/crlManager.js/buggy/security/manager/pki/resources/content/crlManager.js