Bug 1514210 part 1 - Create the devtools sandbox in a new compartment for now. r=bzbarsky

There's a small number of devtools test failures that will be fixed by Alexandre
in bug 1515290. When that lands we can revert this change.

Differential Revision: https://phabricator.services.mozilla.com/D15290

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jan de Mooij 2019-01-03 10:02:33 +00:00
parent 78e49f6404
commit 9f6f1773d0

View File

@ -102,6 +102,9 @@ function Sandbox(options) {
sandboxPrototype: "prototype" in options ? options.prototype : {},
invisibleToDebugger: "invisibleToDebugger" in options ?
options.invisibleToDebugger : false,
// For now create the sandbox in a new compartment. This is temporary until
// bug 1515290 fixes some devtools tests to not rely on this.
freshCompartment: true,
};
const sandbox = Cu.Sandbox(systemPrincipal, options);