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:
Prathiksha 2017-07-18 13:44:44 +05:30
Родитель 6403d4dfc8
Коммит b4e18c04d9
3 изменённых файлов: 18 добавлений и 1 удалений

Просмотреть файл

@ -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 &amp; History">
<!ENTITY securityView.privacy.history "Have I visited this website prior to today?">