document.getElementById("securityTab").setAttribute("hidden", true); 
document.getElementById("securityTab").hidden = true; 
function securityOnLoad() {  var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties");  var pageInfoBundle = document.getElementById("pageinfobundle");  var info = security._getSecurityInfo();  if (!info) {    document.getElementById("securityTab").setAttribute("hidden", true);    document.getElementById("securityBox").collapsed = true;    return;  }  /* Set Identity section text */  setText("security-identity-domain-value", info.hostName);    // FIXME - Should only be showing the next two if the cert is EV.  Waiting on  // bug 374336  var owner, verifier, generalPageIdentityString;  if (info.cert && !info.isBroken) {    // Try to pull out meaningful values.  Technically these fields are optional    // so we'll employ fallbacks where appropriate.  The EV spec states that Org    // fields must be specified for subject and issuer so when 374336 lands, this    // code can be simplified.    owner = info.cert.organization || info.cert.commonName ||            info.cert.subjectName;    verifier = security.mapIssuerOrganization(info.cAName ||                                              info.cert.issuerCommonName ||                                              info.cert.issuerName);    generalPageIdentityString = pageInfoBundle.getFormattedString("generalSiteIdentity",                                                                  [owner, verifier]);  }  else {    // We don't have valid identity credentials.    owner = pageInfoBundle.getString("securityNoIdentity");    verifier = pageInfoBundle.getString("notset");    generalPageIdentityString = owner;  }  setText("security-identity-owner-value", owner);  setText("security-identity-verifier-value", verifier);  setText("general-security-identity", generalPageIdentityString);  /* Manage the View Cert button*/  if (info.cert) {    var viewText = pageInfoBundle.getString("securityCertText");    setText("security-view-text", viewText);    security._cert = info.cert;  }  else {    var viewCert = document.getElementById("security-view-cert");    viewCert.collapsed = true;  }  /* Set Privacy & History section text */  var yesStr = pageInfoBundle.getString("yes");  var noStr = pageInfoBundle.getString("no");  setText("security-privacy-cookies-value",          hostHasCookies(info.hostName) ? yesStr : noStr);  setText("security-privacy-passwords-value",          realmHasPasswords(info.fullLocation) ? yesStr : noStr);    var visitCount = previousVisitCount(info.hostName);  if(visitCount > 1) {    setText("security-privacy-history-value",            pageInfoBundle.getFormattedString("securityNVisits", [visitCount.toLocaleString()]));  }  else if (visitCount == 1) {    setText("security-privacy-history-value",            pageInfoBundle.getString("securityOneVisit"));  }  else {    setText("security-privacy-history-value", noStr);          }  /* Set the Technical Detail section messages */  var hdr;  var msg1;  var msg2;  if (info.isBroken) {    hdr = bundle.GetStringFromName("pageInfo_MixedContent");    msg1 = bundle.GetStringFromName("pageInfo_Privacy_Mixed1");    msg2 = bundle.GetStringFromName("pageInfo_Privacy_None2");  }  else if (info.encryptionStrength >= 90) {    hdr = bundle.formatStringFromName("pageInfo_StrongEncryption",                          [ info.encryptionAlgorithm, info.encryptionStrength + "" ], 2);    msg1 = bundle.GetStringFromName("pageInfo_Privacy_Strong1");    msg2 = bundle.GetStringFromName("pageInfo_Privacy_Strong2");    security._cert = info.cert;  }  else if (info.encryptionStrength > 0) {    hdr  = bundle.formatStringFromName("pageInfo_WeakEncryption",                          [ info.encryptionAlgorithm, info.encryptionStrength + "" ], 2);    msg1 = bundle.formatStringFromName("pageInfo_Privacy_Weak1", [ info.hostName ], 1);    msg2 = bundle.GetStringFromName("pageInfo_Privacy_Weak2");  }  else {    hdr = bundle.GetStringFromName("pageInfo_NoEncryption");    if (info.hostName != null)      msg1 = bundle.formatStringFromName("pageInfo_Privacy_None1", [ info.hostName ], 1);    else      msg1 = bundle.GetStringFromName("pageInfo_Privacy_None3");    msg2 = bundle.GetStringFromName("pageInfo_Privacy_None2");  }  setText("security-technical-shortform", hdr);  setText("security-technical-longform1", msg1);  setText("security-technical-longform2", msg2);   setText("general-security-privacy", hdr);}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/4398f99eeab163c9a6fec72486a7fd7e2d30ceb6/security.js/buggy/browser/base/content/pageinfo/security.js