Peter Djalaliev wrote:
nsHttpChannel::OnStartRequest seems to be called always when data is
received. Why only the last channel?
Only the last channel actually sends data to its listener, so only the
last channel calls listener methods.
mListener is an instance of the nsIStreamListener interface. Is this
usually implemented thgrough the same class in this case?
No, there are a lot of implementors. HTML parser is one, imagelib has
one, etc. Everything that wants to get data from the network has to
implement it.
mListener here is the argument that was passed to asyncOpen.
Hm, I also set mListener but nsHttpChannel::OnDataAvailable and
nsHttpChannel::OnStopRequest still get called. My statements have the
same order as in ProcessRedirect():
That should be fine, no? As long as the actual listener's methods aren't
called.
_______________________________________________
dev-tech-network mailing list
dev-tech-network@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-network