Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Determining Tab/DOMWindow of XHR call in observe?

1 view
Skip to first unread message

Boris Zbarsky

unread,
May 5, 2009, 10:59:35 AM5/5/09
to
Glenn Boysko wrote:
> If I have an observer for http-on-modify-request and http-on-examine-
> response, and I can determine that a request comes from an XHR call,
> can I determine what tab/DOMWindow that call was made in?

This question (and similar ones) is probably better asked in
mozilla.dev.extensions.

That said, for Gecko 1.9.1 the answer is at
https://developer.mozilla.org/En/Updating_extensions_for_Firefox_3.5#Getting_a_load_context_from_a_request

For Gecko 1.9.0 and earlier, the answer is a bit more complicated, but I
believe it's documented...

-Boris

0 new messages