> There is no "the stream" if you have an already opened channel. There's > just the promise to hand out streams through the OnDataAvailable > callbacks on its listener.
But in sync-mode (Open, not AsyncOpen), the open function really "generates" a stream. prototype: nsIChannel::Open(nsIInputStream **aStream) > In a recent Gecko you might be able to intercept these with > nsITraceableChannel, but in general the channel's data is only meant for > whoever opened the channel. I am not sure whether I can "do_QueryInterface" the aRequest param (type: nsIRequest) of OnStateChange in nsIWebProgressListener and obtain this interface, I can try this. My XULRunner SDK is the latest. And thanks for your last sentence since it is a good principle. _______________________________________________ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding