> > I am not sure whether I can "do_QueryInterface" the aRequest param
> > (type: nsIRequest) of OnStateChange in nsIWebProgressListener and
> > obtain this interface
>
> You can.  Sometimes you'll get it, sometimes not.  In fact, I think only
>   HTTP implements that interface at the moment.

I tried but failed, never can I "do_QueryInterface" from aRequest to
obtain nsITraceableChannel.
Another means is to extract the url (nsIRequest::GetName,
nsIHttpChannel::GetURI, etc), and create a channel, then open and get
the stream, but it is really troublesome.

I will try later, thanks for your help.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to