Bug 907100 - When content updates its scroll position, synchrnously communicate the change back to the apz. r=mbrubeck
authorJim Mathies <jmathies@mozilla.com>
Thu, 24 Oct 2013 16:35:07 -0500
changeset 166867 d439b0f78fe99111a02a59b50861c9940bce2e19
parent 166866 c74facfb70ab24462bc0a55c2ff7017e03fa01fc
child 166868 f9208ba78a223b3c874d7c1da3b3ec30be5ea883
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck
bugs907100
milestone27.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 907100 - When content updates its scroll position, synchrnously communicate the change back to the apz. r=mbrubeck
browser/metro/base/content/bindings/browser.js
--- a/browser/metro/base/content/bindings/browser.js
+++ b/browser/metro/base/content/bindings/browser.js
@@ -709,20 +709,20 @@ let ContentScroll =  {
       var element = target;
     }
 
     let utils = window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils);
     let presShellId = {};
     utils.getPresShellId(presShellId);
     let viewId = utils.getViewId(element);
 
-    sendAsyncMessage("scroll", { presShellId: presShellId.value,
-                                 viewId: viewId,
-                                 scrollOffset: scrollOffset,
-                                 isRoot: isRoot });
+    sendSyncMessage("scroll", { presShellId: presShellId.value,
+                                viewId: viewId,
+                                scrollOffset: scrollOffset,
+                                isRoot: isRoot });
   }
 };
 
 ContentScroll.init();
 
 let ContentActive =  {
   init: function() {
     addMessageListener("Content:Activate", this);