Bug 944362: Ensure that scroll updates get propagated to apz. r=jimm a=lsblakk
authorStephen Pohl <spohl.mozilla.bugs@gmail.com>
Fri, 13 Dec 2013 17:43:30 -0500
changeset 174410 11d0763c3ca90993c3623f9495defa4115847330
parent 174409 04a669b65fb3d5037bc0440025dd058bfc64b317
child 174411 cac87bf8f6ec7f67c2b3bd9a8e824043e5e91adc
push id3224
push userlsblakk@mozilla.com
push dateTue, 04 Feb 2014 01:06:49 +0000
treeherdermozilla-beta@60c04d0987f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm, lsblakk
bugs944362
milestone28.0a2
Bug 944362: Ensure that scroll updates get propagated to apz. r=jimm a=lsblakk
browser/metro/base/content/bindings/browser.js
--- a/browser/metro/base/content/bindings/browser.js
+++ b/browser/metro/base/content/bindings/browser.js
@@ -641,17 +641,17 @@ let ContentScroll =  {
           // Don't send a scroll message back to APZC if it's the same as the
           // last one.
           return;
         }
         this._scrollOffset = scrollOffset;
         isRoot = true;
       }
     } else {
-      var window = target.currentDoc.defaultView;
+      var window = target.ownerDocument.defaultView;
       var scrollOffset = this.getScrollOffsetForElement(target);
       var element = target;
     }
 
     let utils = window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils);
     let presShellId = {};
     utils.getPresShellId(presShellId);
     let viewId = utils.getViewId(element);