зеркало из https://github.com/mozilla/pjs.git
Bug 86988, Sorting in certificate manager should be case insensitive
r=rrelyea
This commit is contained in:
Родитель
053549eb55
Коммит
9711981378
|
@ -43,6 +43,7 @@
|
|||
#include "nsIX509CertDB.h"
|
||||
#include "nsXPIDLString.h"
|
||||
#include "nsReadableUtils.h"
|
||||
#include "nsUnicharUtils.h"
|
||||
#include "nsNSSCertificate.h"
|
||||
#include "nsNSSCertHelper.h"
|
||||
#include "nsINSSCertCache.h"
|
||||
|
@ -1088,7 +1089,7 @@ nsCertTree::CmpByCrit(nsIX509Cert *a, CompareCacheHashEntry *ace,
|
|||
|
||||
PRInt32 result;
|
||||
if (str_a && str_b)
|
||||
result = Compare(str_a, str_b);
|
||||
result = Compare(str_a, str_b, nsCaseInsensitiveStringComparator());
|
||||
else
|
||||
result = !str_a ? (!str_b ? 0 : -1) : 1;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче