mozilla

Revision 43039 of Components.utils.Sandbox

  • Revision slug: Components.utils.Sandbox
  • Revision title: Components.utils.Sandbox
  • Revision id: 43039
  • Created:
  • Creator: Varmaa
  • Is current revision? No
  • Comment 36 words added

Revision Content

Revision Source

<p> </p>
<p><code>Components.utils.Sandbox</code> is used to create a sandbox object for use by <a href="/en/Components.utils.evalInSandbox" title="en/Components.utils.evalInSandbox">evalInSandbox</a>. See that page for more details and examples.</p>
<p>Available Sandbox functions (needs formatting): <a class=" external" href="http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/js/src/xpconnect/src/xpccomponents.cpp" rel="freelink">http://bonsai.mozilla.org/cvsblame.c...components.cpp</a></p>
<pre class="eval">dump() - Similar to <a class="internal" href="/En/DOM/Window.dump" title="En/DOM/Window.dump">window.dump()</a>.
debug()
importFunction - Allows for the secure importing of chrome functions into the Sandbox context.  For an example of its use, see <a class="external" href="http://mxr.mozilla.org/mozilla/source/netwerk/base/src/nsProxyAutoConfig.js" title="http://mxr.mozilla.org/mozilla/source/netwerk/base/src/nsProxyAutoConfig.js">nsProxyAutoConfig.js</a>.
</pre>
<p> </p>
<p>{{ languages( { "pl": "pl/Components.utils.Sandbox" } ) }}</p>
Revert to this revision