Bug 569648 - First async XHR without other network activity has null securityInfo for the channel when using auto-detect proxy. r=dveditz

This commit is contained in:
Robert Strong 2010-06-05 00:39:30 -07:00
parent 55fc88f906
commit ddad34acad

View File

@ -86,7 +86,9 @@ BadCertHandler.prototype = {
onChannelRedirect: function(oldChannel, newChannel, flags) {
// make sure the certificate of the old channel checks out before we follow
// a redirect from it. See bug 340198.
checkCert(oldChannel);
// Don't call checkCert for internal redirects. See bug 569648.
if (!(flags & Components.interfaces.nsIChannelEventSink.REDIRECT_INTERNAL))
checkCert(oldChannel);
},
// Suppress any certificate errors