Bug 567831 fennec appears to have an infinite throbber, loads page but doesn't fire onload. r=jduell
authorDoug Turner <dougt@dougt.org>
Fri, 28 May 2010 17:26:45 -0700
changeset 46886 dcfeadea0cba5d103316d0bb3caf3b7030f39249
parent 46885 5d0be2d1bcaf0eed3af65c9d411e077ed11022a5
child 46887 8ee0464d78ba0185c6987db0236d140d4d9be7c4
push idunknown
push userunknown
push dateunknown
reviewersjduell
bugs567831, 566388
milestone1.9.3a5pre
Bug 567831 fennec appears to have an infinite throbber, loads page but doesn't fire onload. r=jduell Same bug as Bug 566388 - [e10s] Not all nsIWebProgress events are being delivered within the content process
netwerk/protocol/http/src/HttpChannelChild.cpp
--- a/netwerk/protocol/http/src/HttpChannelChild.cpp
+++ b/netwerk/protocol/http/src/HttpChannelChild.cpp
@@ -166,16 +166,19 @@ HttpChannelChild::RecvOnStopRequest(cons
   mState = HCC_ONSTOP;
 
   mIsPending = PR_FALSE;
   mStatus = statusCode;
   nsresult rv = mListener->OnStopRequest(this, mListenerContext, statusCode);
   mListener = 0;
   mListenerContext = 0;
 
+  if (mLoadGroup)
+    mLoadGroup->RemoveRequest(this, nsnull, statusCode);
+
   // Corresponding AddRef in AsyncOpen().
   this->Release();
   
   if (!NS_SUCCEEDED(rv)) {
     // TODO: Cancel request: see notes in OnStartRequest
     return false;  
   }
   return true;