mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 21:51:51 -10:00
SpecialPowers.loadChromeScript() sends a script to the child process, then creates a sandbox, and runs the script in that sandbox. There are various sandboxOptions that can be passed when creating a sandbox, and it would be nice to have that functionality for loadChromeScript. I just need this for wantGlobalProperties, but I might as well make it as general as possible. I'm not sure all of the types it can take can actually be serialized across processes, but I guess that's okay. MozReview-Commit-ID: GoJjXdjizFk