Bug 1446940 _another_ followup to fix test breakage from review comments. r=bzbarsky
authorBoris Zbarsky <bzbarsky@mit.edu>
Wed, 01 Aug 2018 13:46:01 -0400
changeset 429708 9fb10f4b87651779edf5704864fd49ddbc696ffc
parent 429707 e0d563f77c20377cc2d5dbeecff048e9008839a6
child 429709 ef0b0f63345d19fe579f5516e0f861de3f188d6e
push id34372
push usernerli@mozilla.com
push dateThu, 02 Aug 2018 08:55:28 +0000
treeherdermozilla-central@bd79b07f57a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs1446940
milestone63.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 1446940 _another_ followup to fix test breakage from review comments. r=bzbarsky
browser/base/content/test/performance/head.js
--- a/browser/base/content/test/performance/head.js
+++ b/browser/base/content/test/performance/head.js
@@ -66,17 +66,17 @@ async function recordReflows(testPromise
   };
   Services.els.addListenerForAllEvents(win, dirtyFrameFn, true);
 
   try {
     dirtyFrame(win);
     await testPromise;
   } finally {
     Services.els.removeListenerForAllEvents(win, dirtyFrameFn, true);
-    docShell.removeWeakReflowObserver(observer);
+    win.docShell.removeWeakReflowObserver(observer);
   }
 
   return reflows;
 }
 
 /**
  * Utility function to report unexpected reflows.
  *