On Feb 24, 5:02 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> > how can i determine the URL of the javascript code that is calling my
> > component?
>
> Not really....

the best workaround i can come up with now is to drop
nsISecurityCheckedComponent and make the component a DOM_OBJECT, then
access it through wrappedJSObject, and use
Components.stack.caller.filename to get the URL of the javascript
that's calling my methods.  of course that means i have to roll my own
security check in every method call.

pretty cheesy, so i'm open to better ideas..

btw, what is nsISecurityCheckedComponent good for if you can't
determine anything about who's calling you?  i guess it's probably
meant for the C++ side of things..

thanks for the info
-tavin

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to