Hello,
I have a request observer and a progress listener. I can use both to
catch the onStartRequest event. I need to perform different actions
depending on whether the request is initiated by the client (someone
wants to navigate to a page) and the request made by me with an
XMLHttpRequest. They are both caught in the event listeners, so I
don't know how to distinguish between them.

The nsIStreamListener's (or nsITraceableChannel's i'm not sure)
onStartRequest(request, context) has that second parameter that is
explained on mozdev as "user defined context value." Is there  a way
to set that context value when I initiate an XMLHttpRequest?
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to