Bug 1368072 - Use idleDispatchToMainThread instead. r=ato
authorAndreas Farre <farre@mozilla.com>
Thu, 22 Jun 2017 10:16:08 +0200
changeset 365432 295e163e66f882afffe8371a7e99f8c16be9a947
parent 365431 822c8c11b2b32aa06be907e1eb8a865295df9433
child 365433 fef8b4d5bd1d3abbbd5ed278fb51a49a59575793
push id91746
push userafarre@mozilla.com
push dateThu, 22 Jun 2017 09:17:31 +0000
treeherdermozilla-inbound@295e163e66f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1368072
milestone56.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 1368072 - Use idleDispatchToMainThread instead. r=ato Adapt to the move of nsIThread.idleDispatch to nsIThreadManager.idleDispatchToMainThread.
testing/marionette/driver.js
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -1275,17 +1275,17 @@ GeckoDriver.prototype.setWindowRect = as
   assert.noUserPrompt(this.dialog);
 
   let {x, y, width, height} = cmd.parameters;
   let origRect = this.curBrowser.rect;
 
   // Throttle resize event by forcing the event queue to flush and delay
   // until the main thread is idle.
   function optimisedResize (resolve) {
-    return () => Services.tm.mainThread.idleDispatch(() => {
+    return () => Services.tm.idleDispatchToMainThread(() => {
       win.requestAnimationFrame(resolve);
     });
   }
 
   // Exit fullscreen and wait for window to resize.
   async function exitFullscreen () {
     return new Promise(resolve => {
       win.addEventListener("sizemodechange", optimisedResize(resolve), {once: true});