mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
Bug 1220753 - Add button to revoke security exceptions in the control center. r=paolo
This commit is contained in:
parent
f38239f17f
commit
4c1b965308
@ -6648,6 +6648,18 @@ var gIdentityHandler = {
|
||||
this._identityPopup.hidePopup();
|
||||
},
|
||||
|
||||
removeCertException() {
|
||||
if (!this._uriHasHost) {
|
||||
Cu.reportError("Trying to revoke a cert exception on a URI without a host?");
|
||||
return;
|
||||
}
|
||||
let host = this._uri.host;
|
||||
let port = this._uri.port > 0 ? this._uri.port : 443;
|
||||
this._overrideService.clearValidityOverride(host, port);
|
||||
BrowserReloadSkipCache();
|
||||
this._identityPopup.hidePopup();
|
||||
},
|
||||
|
||||
/**
|
||||
* Helper to parse out the important parts of _sslStatus (of the SSL cert in
|
||||
* particular) for use in constructing identity UI strings
|
||||
|
@ -117,6 +117,12 @@
|
||||
<description id="identity-popup-content-verifier"
|
||||
when-connection="secure secure-ev secure-cert-user-overridden"/>
|
||||
|
||||
<!-- Remove Certificate Exception -->
|
||||
<button when-connection="secure-cert-user-overridden"
|
||||
label="&identity.removeCertException.label;"
|
||||
accesskey="&identity.removeCertException.accesskey;"
|
||||
oncommand="gIdentityHandler.removeCertException()"/>
|
||||
|
||||
<!-- Connection is Not Secure -->
|
||||
<description when-connection="not-secure"
|
||||
and-when-loginforms="secure">&identity.description.insecure;</description>
|
||||
|
@ -777,6 +777,9 @@ you can use these alternative items. Otherwise, their values should be empty. -
|
||||
<!ENTITY identity.disableMixedContentBlocking.accesskey "D">
|
||||
<!ENTITY identity.learnMore "Learn More">
|
||||
|
||||
<!ENTITY identity.removeCertException.label "Remove Exception">
|
||||
<!ENTITY identity.removeCertException.accesskey "R">
|
||||
|
||||
<!ENTITY identity.moreInfoLinkText2 "More Information">
|
||||
|
||||
<!ENTITY identity.permissions "Permissions">
|
||||
|
Loading…
x
Reference in New Issue
Block a user