Bug 569648 - First async XHR without other network activity has null securityInfo for the channel when using auto-detect proxy. r=dveditz
authorRobert Strong <robert.bugzilla@gmail.com>
Sat, 05 Jun 2010 00:39:30 -0700
changeset 43122 54b1ef73016757af0ac0fa2970867a8d9a5f0c7b
parent 43121 63b89b3114614929b80a358163a2d1ae9feea91b
child 43123 b219912edfec87b80b97b44b6831868c7b1dcf31
push id13626
push userrstrong@mozilla.com
push dateSat, 05 Jun 2010 07:39:52 +0000
treeherdermozilla-central@54b1ef730167 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdveditz
bugs569648
milestone1.9.3a5pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 569648 - First async XHR without other network activity has null securityInfo for the channel when using auto-detect proxy. r=dveditz
toolkit/mozapps/shared/CertUtils.jsm
--- a/toolkit/mozapps/shared/CertUtils.jsm
+++ b/toolkit/mozapps/shared/CertUtils.jsm
@@ -81,17 +81,19 @@ function isBuiltinToken(tokenName) {
 function BadCertHandler() {
 }
 BadCertHandler.prototype = {
 
   // nsIChannelEventSink
   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
   notifyCertProblem: function(socketInfo, status, targetSite) {
     return true;
   },
 
   // Suppress any ssl errors