It indicates the GC region that the sandbox will be placed in. It has no effect on correctness, but memory usage will be better if globals which die at the same time are allocated in the same zone. This is why content scripts pass the window they run against for "sameZoneAs" - both the content and the content script will get cleaned up at the same time.
On Thu, Jan 1, 2015 at 6:35 PM, Naja Melan <[email protected]> wrote: > This option is undocumented on MDN, but the Addon SDK uses it in > combination with sending the contentWindow as prototype for the sandbox. > > How does it relate to the nsIPrincipal parameter? > When should it be used? > _______________________________________________ > dev-platform mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-platform > _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

