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 521117 10dc88c2cacb
parent 521116 9f03512232fb
child 521118 298854093159
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [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;