bug 1523104: remote: stop emitting unused connect/disconnect events; r=ato
authorAlexandre Poirot <poirot.alex@gmail.com>
Mon, 04 Mar 2019 09:57:45 -0800
changeset 524115 10dc88c2cacb56110d46fb21fbf57bf50b3499c4
parent 524114 9f03512232fb28d951209b1dae8c7f61be48523b
child 524116 2988540931598996da8f36f2a0724c9582e1ff3b
push id2032
push userffxbld-merge
push dateMon, 13 May 2019 09:36:57 +0000
treeherdermozilla-release@455c1065dcbe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1523104
milestone67.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 1523104: remote: stop emitting unused connect/disconnect events; r=ato
remote/Target.jsm
--- a/remote/Target.jsm
+++ b/remote/Target.jsm
@@ -26,24 +26,22 @@ class Target {
     this.debugger = new TargetListener(this);
 
     EventEmitter.decorate(this);
   }
 
   connect() {
     Services.obs.addObserver(this, "message-manager-disconnect");
     this.debugger.listen();
-    this.emit("connect");
   }
 
   disconnect() {
     Services.obs.removeObserver(this, "message-manager-disconnect");
     // TODO(ato): Disconnect existing client sockets
     this.debugger.close();
-    this.emit("disconnect");
   }
 
   get id() {
     return this.browsingContext.id;
   }
 
   get browsingContext() {
     return this.browser.browsingContext;