Subj : JS_EvaluateScriptForPrincipals() vs JS_EvaluateScript() To : netscape.public.mozilla.jseng From : Oystein Hallaraker Date : Wed Jun 30 2004 05:52 pm Hi! I have been looking at the code for the two different api functions JS_EvaluateScriptForPrincipals() and JS_EvaluateScript(). I am reading that the first one is a secure version and takes a JSPrincipals struct as a parameter. But where in the engine is this JSPrincipals struct used? When spiderMonkey is embedded in the mozilla browser, does it matter which of these functions are called, since the access control(same origin) is done in the dom/nsScriptSecurityManager? Thanks for any help! Oystein .