mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
b=99083 Polish cert display if field common name (CN) is not present
r=javi sr=alecf
This commit is contained in:
parent
32308b45c6
commit
d4e1d67707
@ -920,6 +920,9 @@ nsNSSCertificate::GetWindowTitle(char * *aWindowTitle)
|
||||
*aWindowTitle = PL_strdup(mCert->nickname);
|
||||
} else {
|
||||
*aWindowTitle = CERT_GetCommonName(&mCert->subject);
|
||||
if (!*aWindowTitle) {
|
||||
*aWindowTitle = PL_strdup(mCert->subjectName);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
NS_ASSERTION(0,"Somehow got nsnull for mCertificate in nsNSSCertificate.");
|
||||
|
Loading…
Reference in New Issue
Block a user