Sandbox: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
No edit summary |
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 [[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 [http://developer.mozilla.org/en/docs/Components.utils Component.utils] page, but it not there now. There is documentation for [http://developer.mozilla.org/en/docs/Components.utils.evalInSandbox Components.utils.evalInSandbox] which gives an example of Sandbox usage. | Documentation for Component.utils.Sandbox<sup>[[http://developer.mozilla.org/en/docs/Components.utils.Sandbox 1]]</sup> may eventually show up on the [http://developer.mozilla.org/en/docs/Components.utils Component.utils] page, but it not there now. There is documentation for [http://developer.mozilla.org/en/docs/Components.utils.evalInSandbox Components.utils.evalInSandbox] which gives an example of Sandbox usage. | ||
For information on sandboxes in general, see [[Wikipedia:Sandbox_(computer_security)|Wikipedia's article on the topic]]. | For information on sandboxes in general, see [[Wikipedia:Sandbox_(computer_security)|Wikipedia's article on the topic]]. | ||
{{stub}} | {{stub}} |
Revision as of 15:18, 12 April 2007
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[1] 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 information on sandboxes in general, see Wikipedia's article on the topic.