Bug 468581 - Use a better function to compute principals. r=brendan

This commit is contained in:
Blake Kaplan
2008-12-19 15:47:20 -08:00
parent 469fc4c156
commit bc0205a5cc

View File

@@ -1259,7 +1259,7 @@ obj_eval(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
}
if (obj != callerScopeChain) {
ok = js_CheckPrincipalsAccess(cx, obj,
caller->script->principals,
JS_StackFramePrincipals(cx, caller),
cx->runtime->atomState.evalAtom);
if (!ok)
goto out;