diff --git a/mozilla/netwerk/protocol/http/src/nsHTTPHandler.cpp b/mozilla/netwerk/protocol/http/src/nsHTTPHandler.cpp index 31255b9a840..27c7a93b80f 100644 --- a/mozilla/netwerk/protocol/http/src/nsHTTPHandler.cpp +++ b/mozilla/netwerk/protocol/http/src/nsHTTPHandler.cpp @@ -1183,7 +1183,8 @@ nsresult nsHTTPHandler::RequestTransport(nsIURI* i_Uri, i_Channel->GetLoadAttributes(&loadFlags); nsCOMPtr callbacks; - i_Channel->GetNotificationCallbacks(getter_AddRefs(callbacks)); + + callbacks = do_QueryInterface(NS_STATIC_CAST(nsIHTTPChannel*, i_Channel)); trans->SetNotificationCallbacks(callbacks, (loadFlags & nsIChannel::LOAD_BACKGROUND));