I tried this or something very similar to it once upon a time, and it didn't work consistently for XHR-based requests, even for XHR-based requests that were created in a client-side document (i.e., had an associated window). I know this is vague and should include a code sample, but I don't have more information at the moment.
----- Original Message ---- From: Christian Biesinger <[EMAIL PROTECTED]> To: [email protected] Sent: Monday, September 17, 2007 12:06:39 PM Subject: Re: Get the originator window of an HTTP request Marie Kesquetta wrote: > I can't find a way to determine what window generated the request. How > do i do so ? Is it at all possible ? Try calling getInterface(Components.interfaces.nsIDOMWindow) on the channel's notification callbacks, and if that fails, the channel's loadgroup's notification callbacks. That should give you the window you want. Keep in mind that some requests don't have an associated window. -- All the world's a stage, And all the men and women merely players: They have their exits and their entrances; And one man in his time plays many parts, [...] --W. Shakespeare _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
