From GreaseSpot Wiki
Revision as of 16:01, 3 November 2017 by Arantius (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Warning: The contents of this page are not accurate in reference to Greasemonkey 4.0, and likely to change in coming versions.

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 at Component.utils page. There is documentation for Components.utils.evalInSandbox which gives an example of Sandbox usage.

For information on sandboxes in general, see Wikipedia's article on the topic.

See also the effects that XPCNativeWrappers have on the Sandbox's relationship to the content page.