Labs/Jetpack/Binary Components: Difference between revisions

m (→‎Flexible Membrane Functionality: minor wording change)
Line 15: Line 15:


<code>nsJetpack</code> contains functionality that exposes many SpiderMonkey C API calls to JavaScript, allowing chrome code to create custom membranes (aka wrappers) that allow trusted and untrusted code to interoperate.
<code>nsJetpack</code> contains functionality that exposes many SpiderMonkey C API calls to JavaScript, allowing chrome code to create custom membranes (aka wrappers) that allow trusted and untrusted code to interoperate.
Aside from security, however, this functionality can also be used to implement APIs that can't normally be implemented using the JavaScript language, such as the <code>window.localStorage</code> interface in HTML5.


The source code for this functionality is in [http://hg.mozilla.org/labs/jetpack/file/tip/components/src/wrapper.cpp wrapper.cpp].   
The source code for this functionality is in [http://hg.mozilla.org/labs/jetpack/file/tip/components/src/wrapper.cpp wrapper.cpp].   
93

edits