Bug 1977252 - Create sandbox.xulRuntime object inside the sandbox compartment. r=tnikkel a=test-only
The xulRuntime object needs to be created inside the sandbox, or code running inside the sandbox will hit some kind of wrapper when attempting to access it, causing thousands of warnings when evaluating the test conditions: Silently denied access to property "shell": Access to privileged JS object not permitted Differential Revision: https://phabricator.services.mozilla.com/D257186
This commit is contained in:
committed by
rvandermeulen@mozilla.com
parent
5b1655eb9b
commit
475768e076
@@ -654,7 +654,7 @@ function BuildConditionSandbox(aURL) {
|
||||
sandbox.wayland = mozinfo.display == "wayland";
|
||||
|
||||
// data not using mozinfo
|
||||
sandbox.xulRuntime = {};
|
||||
sandbox.xulRuntime = Cu.cloneInto({}, sandbox);
|
||||
|
||||
// Do we *not* have a dedicated gpu process.
|
||||
sandbox.nogpu =
|
||||
|
||||
Reference in New Issue
Block a user