> I have no idea what you're talking about here. If you're setting up a > stream listener, it gets handed data. Why do you need a streamloader?
Since it's easier. OK, previous I use creating another channel to obtain the data. E.g. cha is the newly created channel: nsCOMPtr<nsIStreamLoader> loader; NS_NewStreamLoader(loader, observer); cha->AsyncOpen(loader, nsnull); // null context in the above code, observer is an instance of a class which implemented the interface nsIStreamLoaderObserver, and this interface contains only one function: OnStreamComplete. thus, once the channel got the data ready, this function is called and I can retrieve the data easily. nsIStreamLoader is a sub-class of nsIStreamListener. And when I use the new method, I still use nsIStreamLoader as the param of SetNewListener, and I can obtain the data, however, I don't know how to re-enable the previous listener. _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
