[Project_owners] Q: how to access calling XUL window from XPCOM component code?

Godmar Back godmar at gmail.com
Wed Feb 4 05:18:04 PST 2009


I have an XPCOM component which is accessed from different XUL windows
in Firefox 3 via the wrappedJSObject property of a service, as
described in [1].

Would anybody happen to know how I can access/find out the calling XUL
window within a method defined in global component code? (I could pass
in 'window' into each method, but I'm hoping for a simpler way.)

 - Godmar

[1] https://developer.mozilla.org/en/How_to_Build_an_XPCOM_Component_in_Javascript#Using_wrappedJSObject

More information about the Project_owners mailing list