Bug 1504807 - [marionette] Remove call to non-existent "Marionette:newSession" message listener. r=ato, a=test-only
authorHenrik Skupin <mail@hskupin.info>
Tue, 06 Nov 2018 13:16:42 +0000
changeset 501064 2dba15f946e31610e6f6c07b647d59184866f5f7
parent 501063 afe2dac07dff453b0a69151f0a7367dea0d5bf3e
child 501065 6900e33d73082d4dd29a9efa1737e1b29af52c52
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato, test-only
bugs1504807
milestone64.0
Bug 1504807 - [marionette] Remove call to non-existent "Marionette:newSession" message listener. r=ato, a=test-only Differential Revision: https://phabricator.services.mozilla.com/D10998
testing/marionette/driver.js
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -3399,20 +3399,16 @@ GeckoDriver.prototype.receiveMessage = f
 
     case "Marionette:Register":
       let {outerWindowID} = message.json;
       this.registerBrowser(outerWindowID, message.target);
       return {outerWindowID};
 
     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;
 
     case "Marionette:WebDriver:GetCapabilities":
       return this.capabilities.toJSON();
   }
 };