Sandbox: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
LouCypher (talk | contribs)
m fix interwiki link
No edit summary
 
(9 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<div style="border: 3px dotted; color: red; font-size: 1.2em; padding: 0.5em; margin: 1em; text-align: center">
Warning: The contents of this page are not accurate in reference to Greasemonkey 4.0, and likely to change in coming versions.
</div>
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 [http://developer.mozilla.org/en/docs/Components.utils.Sandbox Component.utils.Sandbox] at [http://developer.mozilla.org/en/docs/Components.utils Component.utils] page.
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 more information, see [[Wikipedia:Sandbox_(computer_security)|wikipedia's article on the topic]].
See also the effects that [[XPCNativeWrappers]] have on the Sandbox's relationship to the content page.


{{stub}}
{{stub}}
[[Category:Scripting context]]

Latest revision as of 20:01, 3 November 2017

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.