bug 1507146 - make getting reflow front async; r=ochameau
authoryulia <ystartsev@mozilla.com>
Mon, 19 Nov 2018 12:05:45 +0000
changeset 503924 d65ba27b4b5d5640c7a19b47ec30eb9646f8f077
parent 503923 8ae1895193586cbd409ae6a9282cdf67793b4add
child 503925 cc898cd43aeabbcb542c73ceaace21c1369261ed
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1507146
milestone65.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 1507146 - make getting reflow front async; r=ochameau Depends on D11888 Differential Revision: https://phabricator.services.mozilla.com/D11898
devtools/client/inspector/shared/reflow-tracker.js
--- a/devtools/client/inspector/shared/reflow-tracker.js
+++ b/devtools/client/inspector/shared/reflow-tracker.js
@@ -30,20 +30,20 @@ ReflowTracker.prototype = {
       this.stopTracking();
       this.reflowFront.destroy();
       this.reflowFront = null;
     }
 
     this.listeners.clear();
   },
 
-  startTracking() {
+  async startTracking() {
     // Initialize reflow front if necessary.
     if (!this.reflowFront && this.target.form.reflowActor) {
-      this.reflowFront = this.target.getFront("reflow");
+      this.reflowFront = await this.target.getFront("reflow");
     }
 
     if (this.reflowFront) {
       this.reflowFront.on("reflows", this.onReflow);
       this.reflowFront.start();
     }
   },