rem: var cn=document.getElementById('commonname'); cn.setAttribute("value", cert.commonName);  
add: addAttributeFromCert('commonname', cert.commonName); 
context: function DisplayGeneralDataFromCert(cert){  //  Verification and usage  var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties");  var verifystr = "";  var o1 = {};  var o2 = {};  var o3 = {};  cert.getUsages(o1, o2, o3);  var verifystate = o1.value;  var count = o2.value;  var usageList = o3.value;  if (verifystate == cert.VERIFIED_OK) {    verifystr = bundle.GetStringFromName('certVerified');  } else if (verifystate == cert.CERT_REVOKED) {    verifystr = bundle.GetStringFromName('certNotVerified_CertRevoked');  } else if (verifystate == cert.CERT_EXPIRED) {    verifystr = bundle.GetStringFromName('certNotVerified_CertExpired');  } else if (verifystate == cert.CERT_NOT_TRUSTED) {    verifystr = bundle.GetStringFromName('certNotVerified_CertNotTrusted');  } else if (verifystate == cert.ISSUER_NOT_TRUSTED) {    verifystr = bundle.GetStringFromName('certNotVerified_IssuerNotTrusted');  } else if (verifystate == cert.ISSUER_UNKNOWN) {    verifystr = bundle.GetStringFromName('certNotVerified_IssuerUnknown');  } else if (verifystate == cert.INVALID_CA) {    verifystr = bundle.GetStringFromName('certNotVerified_CAInvalid');  } else { /* if (verifystate == cert.NOT_VERIFIED_UNKNOWN) */    verifystr = bundle.GetStringFromName('certNotVerified_Unknown');  }  var verified=document.getElementById('verified');  verified.setAttribute("value", verifystr);  for (var i=0; i<count; i++) {    AddUsage(usageList[i]);  }  //  Common Name  var cn=document.getElementById('commonname');  cn.setAttribute("value", cert.commonName);  //  Organization  var org=document.getElementById('organization');  org.setAttribute("value", cert.organization);  //  Organizational Unit  var ou=document.getElementById('orgunit');  ou.setAttribute("value", cert.organizationalUnit);  //  Subject Name  var subn=document.getElementById('subjectname');  subn.setAttribute("value", cert.subjectName);  //  Issuer Name  var issn=document.getElementById('issuername');  issn.setAttribute("value", cert.issuerName);  //  Serial Number  var sern=document.getElementById('serialnumber');  sern.setAttribute("value", cert.serialNumber);  //  RSA Public Modulus  var rsap=document.getElementById('rsapubmodulus');  rsap.setAttribute("value", cert.rsaPubModulus);  //  SHA1 Fingerprint  var sha1=document.getElementById('sha1fingerprint');  sha1.setAttribute("value", cert.sha1Fingerprint);  //  MD5 Fingerprint  var md5=document.getElementById('md5fingerprint');  md5.setAttribute("value", cert.md5Fingerprint);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d41928522e534dd9a0996236faf1a714b84070a7/viewCertDetails.js/clean/security/manager/pki/resources/content/viewCertDetails.js