Visit Mozilla.org

Talk:Components.utils.evalInSandbox

From MDC

--johnjbarton 20:30, 1 October 2007 (PDT) Page says regarding var s = Components.utils.Sandbox("http://www.example.com/");

Due to the ability of JavaScript on a web page to set document.domain, changing same-origin security   
checks, you can also pass a DOM window object to the sandbox constructor.

"Also" as is OR or AND? One or two args?

--johnjbarton 20:40, 1 October 2007 (PDT) According to C++ src:

void evalInSandbox(in AString source, in nativeobj sandbox);

--johnjbarton 21:40, 1 October 2007 (PDT) The security example starts with <script src="prototype.js"></script> Why?