Hi All,
I've created a simple XPCom component that has no UI but basically just
a set of functions. I can access them from JavaScript by writing
something like this:
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
const MyCID = "@MyXPCom/MyXPCom/nsMyXPCom;1";
var MyObj = Components.classes[MyCID].createInstance();
MyObj = MyObj.QueryInterface(Components.interfaces.nsIMyXPCom);
MyObj.DoSomething();
This works just fine. Now I want my "DoSomething" method behave
differently depending on web page URL from where my component is being
used. I don't want to pass this information from JavaScript but want to
be able to detect this from XPCom.
How I can do it? Is this possible? Any help is greatly appreciated.
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom