Bug 1203022 - Fix marionette-webapi busted, JavaScript Error: "TypeError: this.sendResponse is not a function". r=ato
authorEdgar Chen <echen@mozilla.com>
Wed, 09 Sep 2015 15:09:01 +0800
changeset 294229 3f885f145ffdabf580434b55ab9e86f56d24a2bf
parent 294228 71f6a522e86e958fd973c7bf831e05d6b5c467e9
child 294230 d0998dc22964183a0e5f972d8c6b73c2144b6d79
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1203022
milestone43.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 1203022 - Fix marionette-webapi busted, JavaScript Error: "TypeError: this.sendResponse is not a function". r=ato
testing/marionette/dispatcher.js
--- a/testing/marionette/dispatcher.js
+++ b/testing/marionette/dispatcher.js
@@ -42,17 +42,17 @@ this.Dispatcher = function(connId, trans
 
   // callback for when connection is closed
   this.onclose = null;
 
   // transport hooks are Dispatcher.prototype.onPacket
   // and Dispatcher.prototype.onClosed
   this.conn.hooks = this;
 
-  this.emulator = new Emulator(msg => this.sendResponse(msg, -1));
+  this.emulator = new Emulator(msg => this.send(msg, -1));
   this.driver = driverFactory(this.emulator);
   this.commandProcessor = new CommandProcessor(this.driver);
 
   this.stopSignal_ = stopSignal;
 };
 
 /**
  * Debugger transport callback that dispatches the request.