That works. Thank a lot. Could you help me about another problem?
FF sends various of http requests. Some are triggered by user action. Some are sent by other extensions, for example Google toolbar. But I only cares about requests triggered by users. So how can I distinguish it from other kinds? On Jan 23, 12:12 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I am developing a Firefox extension for FF2.0.0.x, and I use the > > following method to capture a request. In this way I can capture all > > kinds of HttpRequest sent by Firefox, including normal HttpRequest and > > XMLHttpRequest. But I only care about normal HttpRequest. > > I have to ask... why? What's the distinction? > > You might be able to look at the channel's callbacks and tell that way, but I > can't offhand think of a use case where you'd want to only look at things that > are _not_ XMLHttpRequest. > > -Boris _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
