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-06 15:36:52 +00:00
Родитель 82b162a511
Коммит 3df3c840f0
2 изменённых файлов: 1 добавлений и 21 удалений

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

@ -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;
};

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

@ -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