Sandbox: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (component.utils URI lists Sandbox... removed "not there")
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.
[link=http://sig.graphicsfactory.com/]
 
[image noborder]http://sig.graphicsfactory.com/Melting/m.gif[/image][image noborder]http://sig.graphicsfactory.com/Melting/a.gif[/image][image noborder]http://sig.graphicsfactory.com/Melting/h.gif[/image][image noborder]http://sig.graphicsfactory.com/Melting/e.gif[/image][image noborder]http://sig.graphicsfactory.com/Melting/s.gif[/image][image noborder]http://sig.graphicsfactory.com/Melting/h.gif[/image]
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.
[/link]<BR>
There is documentation for [http://developer.mozilla.org/en/docs/Components.utils.evalInSandbox Components.utils.evalInSandbox] which gives an example of Sandbox usage.
[link=http://sig.graphicsfactory.com/][font size=9]Glitter Graphics[/font][/link]
 
For information on sandboxes in general, 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}}
[[Category:Scripting context]]

Revision as of 03:04, 28 March 2010