bug 1523104: remote: signal that transport is ready when connection is created; r=ochameau
authorAndreas Tolfsen <ato@sny.no>
Thu, 07 Mar 2019 22:15:35 +0000
changeset 521134 e94205832ec1
parent 521133 c750fecfdf21
child 521135 2c703d235c4c
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)
reviewersochameau
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: signal that transport is ready when connection is created; r=ochameau
remote/Connection.jsm
--- a/remote/Connection.jsm
+++ b/remote/Connection.jsm
@@ -14,16 +14,18 @@ XPCOMUtils.defineLazyServiceGetter(this,
 
 class Connection {
   constructor(transport) {
     this.id = UUIDGen.generateUUID().toString();
     this.transport = transport;
 
     this.transport.hooks = this;
     this.onmessage = () => {};
+
+    this.transport.ready();
   }
 
   send(message) {
     log.trace(`<-(connection ${this.id}) ${JSON.stringify(message)}`);
     // TODO(ato): Check return types
     this.transport.send(message);
   }