mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
add nsIStreamObserver to QI method. Since it is inherited from nsIStreamListener, you need to explicitly list both
otherwise it generates an assert when you use a nsCOMPtr to QI for a method on nsIStreamObserver
This commit is contained in:
parent
cebe5a092d
commit
c18efc0320
2
netwerk/cache/mgr/nsCachedNetData.cpp
vendored
2
netwerk/cache/mgr/nsCachedNetData.cpp
vendored
@ -1149,7 +1149,7 @@ private:
|
|||||||
nsCOMPtr<nsIChannel> mChannel;
|
nsCOMPtr<nsIChannel> mChannel;
|
||||||
};
|
};
|
||||||
|
|
||||||
NS_IMPL_ISUPPORTS2(InterceptStreamListener, nsIInputStream, nsIStreamListener)
|
NS_IMPL_ISUPPORTS3(InterceptStreamListener, nsIInputStream, nsIStreamListener, nsIStreamObserver)
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsCachedNetData::InterceptAsyncRead(nsIStreamListener *aOriginalListener,
|
nsCachedNetData::InterceptAsyncRead(nsIStreamListener *aOriginalListener,
|
||||||
|
Loading…
Reference in New Issue
Block a user