On 3/24/10 9:21 AM, Rémi wrote:
Are you pumping the data you get into the original request's observer?
No I do not, how can I do that?
By calling its onStartRequest/onDataAvailable/onStopRequest methods.
Note that you also need to make sure the original channel doesn't call
those (so you need to replace the original listener on that channel with
your own or something). You also need to send redirect notifications as
needed, since that's effectively what you're doing.
Does the display functionality have to be implemented in the listener
object passed to asyncOpen (maybe
in the onDataAvailable method?) ?
Yes.
How can I implement this functionality? Can you provide me with some
code or give me links?
Sorry, no. Basically, you need to make it look to the original channel's
consumer as if the necko API promise is actually being fulfilled. What
that involves depends on exactly what you're doing to the original
channel and your channel.
-Boris
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network