User:Asqueella/Sandboxes

From MozillaWiki
Jump to: navigation, search
Capability Sandbox Components.utils.import()
Run code with non-system principal Yes No
Multiple "instances" of the same code (page-mods, unit-test) Yes No (not without loading the same code from a different URI, defeating caching)
Caches compiled code => no need to recompile from source on every creation (i.e. on startup for regular modules, on page load for page-mods). No Yes
Unloadable Yes Firefox 7+ [1]
Other
  • many extra globals: atob, btoa, File, __LOCATION__, __URI__, EXPORTED_SYMBOLS
Creation cost / memory overhead  ?  ?