зеркало из https://github.com/mozilla/pjs.git
Bug 344817, PSM: fix UI display problems for X.509 certs with empty DNs
Patch for GetWindowTitle, contributed by Kaspar Brand r=kengert
This commit is contained in:
Родитель
6e3768170d
Коммит
37d139f34d
|
@ -391,7 +391,13 @@ nsNSSCertificate::GetWindowTitle(char * *aWindowTitle)
|
|||
} else {
|
||||
*aWindowTitle = CERT_GetCommonName(&mCert->subject);
|
||||
if (!*aWindowTitle) {
|
||||
*aWindowTitle = PL_strdup(mCert->subjectName);
|
||||
if (mCert->subjectName) {
|
||||
*aWindowTitle = PL_strdup(mCert->subjectName);
|
||||
} else if (mCert->emailAddr) {
|
||||
*aWindowTitle = PL_strdup(mCert->emailAddr);
|
||||
} else {
|
||||
*aWindowTitle = PL_strdup("");
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче