Subj : Re: liveconnect... To : Oystein Hallaraker From : Brendan Eich Date : Wed Jul 14 2004 08:01 pm Oystein Hallaraker wrote: > Hi! I am looking at liveconnect. When a javascript calls a java method I > would like to print out the origin of the javascript. I know that the > ScriptSecurityManager sits on this info, but how do I get it? > LiveConnect is written in C and does not implement XPCOM, and therefore > I cannot use XPCOM to access the ScriptSecurityManager... And yet it all somehow works. Imagine (perhaps this is true for your embedding) no C++, no XPCOM, and no ScriptSecurityManager. The "origin" of a script is just its filename. See jsdbgapi.h's JS_GetScriptFilename and related APIs. /be .