Comment 155 for bug 25830

Revision history for this message
In , Christian Biesinger (cbiesinger) wrote :

Created an attachment (id=176937)
backend patch, v4

transferring r=bz

this includes the following change for onStopRequest/NS_BINDING_REDIRECTED:
(the if for the else is if (!oldListener))
--- base/nsURILoader.cpp 8 Mar 2005 00:21:40 -0000
+++ base/nsURILoader.cpp 9 Mar 2005 21:22:09 -0000
@@ -445,7 +445,11 @@
       status = rv;

     m_targetStreamListener->OnStopRequest(aChannel, nsnull, status);
+ } else {
+ // Otherwise, send the final onStopRequest to the old listener
+ oldListener->OnStopRequest(aChannel, nsnull, NS_BINDING_REDIRECTED);
   }
+
   return NS_OK;
 }