From 7a65053a9372178b4910d3c709e3bf8675ca77b7 Mon Sep 17 00:00:00 2001 From: "rpotts%netscape.com" Date: Tue, 27 Mar 2001 00:20:04 +0000 Subject: [PATCH] All nsIProgressEventSink notifications from the socket transport should go to the nsHTTPChannel... (r=darin) --- netwerk/protocol/http/src/nsHTTPRequest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/netwerk/protocol/http/src/nsHTTPRequest.cpp b/netwerk/protocol/http/src/nsHTTPRequest.cpp index 8a547434ccf..541ac4b5ace 100644 --- a/netwerk/protocol/http/src/nsHTTPRequest.cpp +++ b/netwerk/protocol/http/src/nsHTTPRequest.cpp @@ -682,7 +682,8 @@ nsHTTPPipelinedRequest::WriteRequest(nsIInputStream *aRequestStream) req->mConnection->GetLoadAttributes(&loadAttributes); nsCOMPtr callbacks; - req->mConnection->GetNotificationCallbacks(getter_AddRefs(callbacks)); + + callbacks = do_QueryInterface(NS_STATIC_CAST(nsIHTTPChannel*, req->mConnection)); mTransport->SetNotificationCallbacks(callbacks, (loadAttributes & nsIChannel::LOAD_BACKGROUND)); } @@ -1148,7 +1149,8 @@ nsHTTPPipelinedRequest::AdvanceToNextRequest() req->mConnection->GetLoadAttributes(&flags); nsCOMPtr callbacks; - mTransport->GetNotificationCallbacks(getter_AddRefs(callbacks)); + + callbacks = do_QueryInterface(NS_STATIC_CAST(nsIHTTPChannel*, req->mConnection)); mTransport->SetNotificationCallbacks(callbacks, (flags & nsIChannel::LOAD_BACKGROUND)); NS_RELEASE(req);