Bug 1491488 - Mimic the old behavior in marionette. r=whimboo
authorBobby Holley <bobbyholley@gmail.com>
Fri, 14 Sep 2018 15:38:55 -0700
changeset 436813 a0a8c075863138ce064fd45dbac8b8a034ef72eb
parent 436812 fbbd1b11e09fe07e22b03ee66b121d52b480a6aa
child 436814 fcc53ec73be98f90478b2437c90be9b751fd7145
push id34660
push userbtara@mozilla.com
push dateMon, 17 Sep 2018 21:58:52 +0000
treeherdermozilla-central@87a95e1b7ec6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswhimboo
bugs1491488
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1491488 - Mimic the old behavior in marionette. r=whimboo MozReview-Commit-ID: CFpCiamhMBL
testing/marionette/evaluate.js
--- a/testing/marionette/evaluate.js
+++ b/testing/marionette/evaluate.js
@@ -448,17 +448,18 @@ sandbox.create = function(window, princi
  * @return {Sandbox}
  *     The created sandbox.
  */
 sandbox.createMutable = function(window) {
   let opts = {
     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) {
   let principal = Cc["@mozilla.org/systemprincipal;1"]
       .createInstance(Ci.nsIPrincipal);
   return sandbox.create(window, principal);
 };