Bug 1564221 - Make nsITransportSecurityInfo builtinclass r=keeler

There are no longer any consumers of the JS-implemented
`FakeTransportSecurityInfo` class, so it can be removed. That removes the last
JS-implemented `nsITransportSecurityInfo` instance and it therefore can be
marked `builtinclass`.

Differential Revision: https://phabricator.services.mozilla.com/D40355

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Barret Rennie 2019-08-20 21:38:24 +00:00
parent a72079afcb
commit 3f90c2f83f
2 changed files with 1 additions and 21 deletions

View File

@ -9,7 +9,7 @@
interface nsIX509Cert;
interface nsIX509CertList;
[scriptable, uuid(216112d3-28bc-4671-b057-f98cc09ba1ea)]
[builtinclass, scriptable, uuid(216112d3-28bc-4671-b057-f98cc09ba1ea)]
interface nsITransportSecurityInfo : nsISupports {
readonly attribute unsigned long securityState;
readonly attribute long errorCode; // PRErrorCode
@ -72,4 +72,3 @@ interface nsITransportSecurityInfo : nsISupports {
[must_use]
readonly attribute boolean isExtendedValidation;
};

View File

@ -837,25 +837,6 @@ function stopOCSPResponder(responder) {
});
}
// A prototype for a fake, error-free secInfo
var FakeTransportSecurityInfo = function(certificate) {
this.serverCert = certificate;
};
FakeTransportSecurityInfo.prototype = {
serverCert: null,
cipherName: null,
keyLength: 2048,
isDomainMismatch: false,
isNotValidAtThisTime: false,
isUntrusted: false,
isExtendedValidation: false,
getInterface(aIID) {
return this.QueryInterface(aIID);
},
QueryInterface: ChromeUtils.generateQI(["nsITransportSecurityInfo"]),
};
// Utility functions for adding tests relating to certificate error overrides
// Helper function for add_cert_override_test. Probably doesn't need to be