Sandbox: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (Reverted edits by 202.65.154.225 (Talk) to last revision by Marti)
No edit summary
Line 1: Line 1:
For [[security]] reasons, modern [[Version history|versions]] of [[Greasemonkey]] execute each script in a "sandbox", which isolates trusted [[user script]] code from potentially malicious web page code.
For [[security]] reasons, modern [[Version history|versions]] of [[Jessiemonkey]] execute each script in a "sandbox", which isolates trusted [[user script]] code from potentially malicious web page code.


Documentation for [http://developer.mozilla.org/en/docs/Components.utils.Sandbox Component.utils.Sandbox] at [http://developer.mozilla.org/en/docs/Components.utils Component.utils] page.
Documentation for [http://developer.mozilla.org/en/docs/Components.utils.Sandbox Component.utils.Sandbox] at [http://developer.mozilla.org/en/docs/Components.utils Component.utils] page.

Revision as of 18:08, 17 August 2010

For security reasons, modern versions of Jessiemonkey 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.