diff --git a/testing/marionette/driver.js b/testing/marionette/driver.js index 2c4ac8b0eca1..04633e92d10b 100644 --- a/testing/marionette/driver.js +++ b/testing/marionette/driver.js @@ -3411,10 +3411,6 @@ GeckoDriver.prototype.receiveMessage = function(message) { case "Marionette:ListenersAttached": if (message.json.outerWindowID === this.curBrowser.curFrameId) { - // If the frame script gets reloaded we need to call newSession. - // In the case of desktop this just sets up a small amount of state - // that doesn't change over the course of a session. - this.sendAsync("newSession"); this.curBrowser.flushPendingCommands(); } break;