зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1354297 - Certificate expiry date is displayed in the page info dialog. r=johannh
MozReview-Commit-ID: K0Rg6QMNNZ2 --HG-- extra : rebase_source : 120d51879bd75a201aa242db0c3fde1f14dae6cc
This commit is contained in:
Родитель
6403d4dfc8
Коммит
b4e18c04d9
|
@ -346,6 +346,15 @@
|
|||
<textbox id="security-identity-verifier-value"
|
||||
class="fieldValue" readonly="true" />
|
||||
</row>
|
||||
<!-- Certificate Validity -->
|
||||
<row id="security-identity-validity-row">
|
||||
<label id="security-identity-validity-label"
|
||||
class="fieldLabel"
|
||||
value="&securityView.identity.validity;"
|
||||
control="security-identity-validity-value"/>
|
||||
<textbox id="security-identity-validity-value"
|
||||
class="fieldValue" readonly="true" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<spacer flex="1"/>
|
||||
|
|
|
@ -195,8 +195,10 @@ function securityOnLoad(uri, windowInfo) {
|
|||
/* Set Identity section text */
|
||||
setText("security-identity-domain-value", info.hostName);
|
||||
|
||||
var owner, verifier;
|
||||
var owner, verifier, validity;
|
||||
if (info.cert && !info.isBroken) {
|
||||
validity = info.cert.validity.notAfterLocalDay;
|
||||
|
||||
// Try to pull out meaningful values. Technically these fields are optional
|
||||
// so we'll employ fallbacks where appropriate. The EV spec states that Org
|
||||
// fields must be specified for subject and issuer so that case is simpler.
|
||||
|
@ -222,6 +224,11 @@ function securityOnLoad(uri, windowInfo) {
|
|||
|
||||
setText("security-identity-owner-value", owner);
|
||||
setText("security-identity-verifier-value", verifier);
|
||||
if (validity) {
|
||||
setText("security-identity-validity-value", validity);
|
||||
} else {
|
||||
document.getElementById("security-identity-validity-row").hidden = true;
|
||||
}
|
||||
|
||||
/* Manage the View Cert button*/
|
||||
var viewCert = document.getElementById("security-view-cert");
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
<!ENTITY securityView.identity.owner "Owner:">
|
||||
<!ENTITY securityView.identity.domain "Website:">
|
||||
<!ENTITY securityView.identity.verifier "Verified by:">
|
||||
<!ENTITY securityView.identity.validity "Expires on:">
|
||||
|
||||
<!ENTITY securityView.privacy.header "Privacy & History">
|
||||
<!ENTITY securityView.privacy.history "Have I visited this website prior to today?">
|
||||
|
|
Загрузка…
Ссылка в новой задаче