B2G/gecko/toolkit/mozapps/extensions/test/browser/browser_installssl.js
// Add overrides for the bad certificates
Add overrides for the bad certificates
Add overrides for the bad certificates
function addCertOverrides() {
  addCertOverride("nocert.example.com", Ci.nsICertOverrideService.ERROR_MISMATCH);
  addCertOverride("self-signed.example.com", Ci.nsICertOverrideService.ERROR_UNTRUSTED);
  addCertOverride("untrusted.example.com", Ci.nsICertOverrideService.ERROR_UNTRUSTED);
  addCertOverride("expired.example.com", Ci.nsICertOverrideService.ERROR_TIME);
}
function addCertOverrides ( ) { addCertOverride ( "nocert.example.com" , Ci . nsICertOverrideService . ERROR_MISMATCH ) ; addCertOverride ( "self-signed.example.com" , Ci . nsICertOverrideService . ERROR_UNTRUSTED ) ; addCertOverride ( "untrusted.example.com" , Ci . nsICertOverrideService . ERROR_UNTRUSTED ) ; addCertOverride ( "expired.example.com" , Ci . nsICertOverrideService . ERROR_TIME ) ; }
Add overrides for the bad certificates
Add overrides for the bad certificates