зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1470516 - remove or fix localized values in securityInfo, r=rpl
MozReview-Commit-ID: 3xURSfbPTmS --HG-- extra : rebase_source : aeb333a0c72120724a5a7d988f460e3c703b09c3
This commit is contained in:
Родитель
2699451ba6
Коммит
a6c792f349
|
@ -189,10 +189,10 @@
|
|||
},
|
||||
"validity": {
|
||||
"type": "object",
|
||||
"description": "Contains start and end dates in GMT.",
|
||||
"description": "Contains start and end timestamps.",
|
||||
"properties": {
|
||||
"startGMT": { "type": "string" },
|
||||
"endGMT": { "type": "string" }
|
||||
"start": { "type": "integer" },
|
||||
"end": { "type": "integer" }
|
||||
}
|
||||
},
|
||||
"fingerprint": {
|
||||
|
@ -214,9 +214,6 @@
|
|||
"sha256": { "type": "string" }
|
||||
}
|
||||
},
|
||||
"keyUsages": {
|
||||
"type": "string"
|
||||
},
|
||||
"rawDER": {
|
||||
"optional": true,
|
||||
"type": "array",
|
||||
|
|
|
@ -37,6 +37,8 @@ function getExtension() {
|
|||
} else {
|
||||
browser.test.assertTrue(securityInfo.certificates.length == 1, "no certificate chain");
|
||||
}
|
||||
let cert = securityInfo.certificates[0];
|
||||
browser.test.assertTrue(cert.validity.start < Date.now() < cert.validity.end, "cert validity is correct");
|
||||
if (options.rawDER) {
|
||||
for (let cert of securityInfo.certificates) {
|
||||
browser.test.assertTrue(cert.rawDER.length > 0, "have rawDER");
|
||||
|
|
|
@ -210,8 +210,8 @@ const SecurityInfo = {
|
|||
subject: cert.subjectName,
|
||||
issuer: cert.issuerName,
|
||||
validity: {
|
||||
startGMT: cert.validity.notBeforeGMT,
|
||||
endGMT: cert.validity.notAfterGMT,
|
||||
start: cert.validity.notBefore,
|
||||
end: cert.validity.notAfter,
|
||||
},
|
||||
fingerprint: {
|
||||
sha1: cert.sha1Fingerprint,
|
||||
|
@ -222,7 +222,6 @@ const SecurityInfo = {
|
|||
subjectPublicKeyInfoDigest: {
|
||||
sha256: cert.sha256SubjectPublicKeyInfoDigest,
|
||||
},
|
||||
keyUsages: cert.keyUsages,
|
||||
};
|
||||
if (options.rawDER) {
|
||||
certData.rawDER = cert.getRawDER({});
|
||||
|
|
Загрузка…
Ссылка в новой задаче