Bug 858288 - set sandbox to null in switchToFrame, r=jgriffin, a=test-only
authorMalini Das <mdas@mozilla.com>
Mon, 08 Apr 2013 12:53:06 -0400
changeset 118991 9bf480c7f8b51e4a530321bf70c393251a5d59d2
parent 118990 24b27125d907a4f1ac5e1b971d747c70556d3f75
child 118992 bb5aa06c425bc83f40998779fd65b8c0ac436a06
push id637
push usermdas@mozilla.com
push dateMon, 08 Apr 2013 16:53:53 +0000
reviewersjgriffin, test-only
bugs858288
milestone18.0
Bug 858288 - set sandbox to null in switchToFrame, r=jgriffin, a=test-only
testing/marionette/marionette-listener.js
--- a/testing/marionette/marionette-listener.js
+++ b/testing/marionette/marionette-listener.js
@@ -1590,16 +1590,17 @@ function switchToFrame(msg) {
     msg.json.value = null;
     msg.json.element = null;
   }
   if ((msg.json.value == null) && (msg.json.element == null)) {
     curWindow = content;
     if(msg.json.focus == true) {
       curWindow.focus();
     }
+    sandbox = null;
     checkTimer.initWithCallback(checkLoad, 100, Ci.nsITimer.TYPE_ONE_SHOT);
     return;
   }
   if (msg.json.element != undefined) {
     if (elementManager.seenItems[msg.json.element] != undefined) {
       let wantedFrame;
       try {
         wantedFrame = elementManager.getKnownElement(msg.json.element, curWindow); //HTMLIFrameElement