Bug 1179732 - Make the tresize addon e10s compatible r=jmaher
authorGeorge Wright <george@mozilla.com>
Tue, 26 Jan 2016 17:59:02 -0500
changeset 281956 21ec96388cfa121714f646e4fd197c96257c5393
parent 281955 d8f94c8056847a041d918102131eab86f15cd4ed
child 281957 6f9e929f43a21f5d9fc57b9325751524005756ec
push id29950
push usercbook@mozilla.com
push dateThu, 28 Jan 2016 11:14:03 +0000
treeherdermozilla-central@2b73b0a4d52b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1179732
milestone47.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 1179732 - Make the tresize addon e10s compatible r=jmaher
testing/talos/talos/startup_test/tresize/addon/content/tresize.js
testing/talos/talos/startup_test/tresize/addon/install.rdf
--- a/testing/talos/talos/startup_test/tresize/addon/content/tresize.js
+++ b/testing/talos/talos/startup_test/tresize/addon/content/tresize.js
@@ -11,27 +11,27 @@ var windowSize = 425;
 var resizeIncrement = 2;
 var count = 0;
 var max = 300;
 
 var dumpDataSet = false;
 var doneCallback = null;
 
 function painted() {
-  window.gBrowser.removeEventListener("MozAfterPaint", painted, true);
+  window.removeEventListener("MozAfterPaint", painted, true);
   var paintTime = window.performance.now();
   Profiler.pause("resize " + count);
   dataSet[count].end = paintTime;
   setTimeout(resizeCompleted, 20);
 }
 
 function resizeTest() {
   try {
     windowSize += resizeIncrement;
-    window.gBrowser.addEventListener("MozAfterPaint", painted, true);
+    window.addEventListener("MozAfterPaint", painted, true);
     Profiler.resume("resize " + count);
     dataSet[count] = {'start': window.performance.now()};
     window.resizeTo(windowSize,windowSize);
   } catch(ex) { finish([ex + '\n']); }
 }
 
 function testCompleted() {
   try {
--- a/testing/talos/talos/startup_test/tresize/addon/install.rdf
+++ b/testing/talos/talos/startup_test/tresize/addon/install.rdf
@@ -12,9 +12,10 @@
         <em:maxVersion>*</em:maxVersion>
     </Description>
 </em:targetApplication>
 
 <!-- Optional Items -->
 <em:creator>Joel Maher</em:creator>
 <em:description>https://wiki.mozilla.org/Buildbot/Talos/Tests</em:description>
 <em:homepageURL>https://wiki.mozilla.org/Buildbot/Talos/Tests</em:homepageURL>
+<em:multiprocessCompatible>true</em:multiprocessCompatible>
 </Description></RDF>