Bug 1491488 - Mimic the old behavior in marionette. r=whimboo

MozReview-Commit-ID: CFpCiamhMBL
This commit is contained in:
Bobby Holley 2018-09-14 15:38:55 -07:00
parent eac505cdf4
commit d8b5efe2e3

View File

@ -453,7 +453,8 @@ sandbox.createMutable = function(window) {
wantComponents: false,
wantXrays: false,
};
return sandbox.create(window, null, opts);
// Note: We waive Xrays here to match potentially-accidental old behavior.
return Cu.waiveXrays(sandbox.create(window, null, opts));
};
sandbox.createSystemPrincipal = function(window) {