mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
not on main pull - pulled extraneous reference to an nsIHTTPNotify
This commit is contained in:
parent
4aabe84866
commit
efa7a153ba
@ -480,19 +480,10 @@ nsHTTPChannel::Open(void)
|
||||
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
// send off the notification, and block.
|
||||
nsIHTTPNotify* externMod = nsnull;
|
||||
rv = pNotify->QueryInterface(nsIHTTPNotify::GetIID(), (void**)&externMod);
|
||||
NS_RELEASE(pNotify);
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_ASSERTION(0, "proxy object manager found an interface we can not QI for");
|
||||
NS_RELEASE(pModules);
|
||||
return rv;
|
||||
}
|
||||
|
||||
// make the nsIHTTPNotify api call
|
||||
externMod->ModifyRequest(this);
|
||||
NS_RELEASE(externMod);
|
||||
pNotify->ModifyRequest(this);
|
||||
NS_RELEASE(pNotify);
|
||||
// we could do something with the return code from the external
|
||||
// module, but what????
|
||||
}
|
||||
|
@ -316,19 +316,10 @@ nsresult nsHTTPResponseListener::FireOnHeadersAvailable()
|
||||
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
// send off the notification, and block.
|
||||
nsIHTTPNotify* externMod = nsnull;
|
||||
rv = pNotify->QueryInterface(nsIHTTPNotify::GetIID(), (void**)&externMod);
|
||||
NS_RELEASE(pNotify);
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_ASSERTION(0, "proxy object manager found an interface we can not QI for");
|
||||
NS_RELEASE(pModules);
|
||||
return rv;
|
||||
}
|
||||
|
||||
// make the nsIHTTPNotify api call
|
||||
externMod->AsyncExamineResponse(m_pConnection);
|
||||
NS_RELEASE(externMod);
|
||||
pNotify->AsyncExamineResponse(m_pConnection);
|
||||
NS_RELEASE(pNotify);
|
||||
// we could do something with the return code from the external
|
||||
// module, but what????
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user