From c18efc0320fda21f83c08ba4adc495cbfc804a0d Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Thu, 13 Jan 2000 03:17:38 +0000 Subject: [PATCH] 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 --- netwerk/cache/mgr/nsCachedNetData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwerk/cache/mgr/nsCachedNetData.cpp b/netwerk/cache/mgr/nsCachedNetData.cpp index 1903a7111039..a9de25e1f554 100644 --- a/netwerk/cache/mgr/nsCachedNetData.cpp +++ b/netwerk/cache/mgr/nsCachedNetData.cpp @@ -1149,7 +1149,7 @@ private: nsCOMPtr mChannel; }; -NS_IMPL_ISUPPORTS2(InterceptStreamListener, nsIInputStream, nsIStreamListener) +NS_IMPL_ISUPPORTS3(InterceptStreamListener, nsIInputStream, nsIStreamListener, nsIStreamObserver) NS_IMETHODIMP nsCachedNetData::InterceptAsyncRead(nsIStreamListener *aOriginalListener,