B2G/gecko/toolkit/mozapps/extensions/test/browser/head.js
// Add overrides for the bad certificates
Add overrides for the bad certificates
Add overrides for the bad certificates
function addCertOverride(host, bits) {
  var req = new XMLHttpRequest();
  try {
    req.open("GET", "https://" + host + "/", false);
    req.channel.notificationCallbacks = new CertOverrideListener(host, bits);
    req.send(null);
  }
  catch (e) {
  }
}
function addCertOverride ( host , bits ) { var req = new XMLHttpRequest ( ) ; try { req . open ( "GET" , "https://" + host + "/" , false ) ; req . channel . notificationCallbacks = new CertOverrideListener ( host , bits ) ; req . send ( null ) ; } catch ( e ) { } }
Add overrides for the bad certificates
Add overrides for the bad certificates
// This request will fail since the SSL server is not trusted yet