Sandbox

From GreaseSpot Wiki
Revision as of 01:27, 22 January 2007 by 205.201.57.49 (talk) (added evalInSandbox)
Jump to navigationJump to search

For security reasons, modern versions of Greasemonkey execute each script in a "sandbox", which isolates trusted user script code from potentially malicious web page code.

Documentation for Component.utils.Sandbox may eventually show up on the [Component.utils] page, but it not there now. There is documentation for [Components.utils.evalInSandbox] which gives an example of Sandbox usage.

For more information, see wikipedia's article on the topic.