Currently, the compartments and global objects that jsapi-test creates have a null principal. For some tests, it is useful to be able to have principals. I could override createGlobal, but it turns out that it's pretty easy to add this directly to tests.h.
Created attachment 589235 [details] [diff] [review] Proposed fix
Comment on attachment 589235 [details] [diff] [review] Proposed fix https://hg.mozilla.org/integration/mozilla-inbound/rev/04af5f29e0bf