Re: How to override Components.utils.import to inject predefined symbols for all.

2015-06-05 Thread Andrew Sutherland
If you want JS code to load into a context with something predefined, you probably want to be using a sandbox and a subscript loader, not JSM's. For an example, check out this code that uses Thunderbird's fake-server code that used to run in an xpcshell context but instead run it in a sandbox (see

Re: How to override Components.utils.import to inject predefined symbols for all.

2015-06-05 Thread David Rajchenbach-Teller
What exactly are you trying to do? On 05/06/15 09:22, 罗勇刚(Yonggang Luo) wrote: -- David Rajchenbach-Teller, PhD Performance Team, Mozilla ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform