Bug 946222 - Fix responsive design touch events against gaia. r=paul
authorAlexandre Poirot <poirot.alex@gmail.com>
Wed, 04 Dec 2013 17:41:29 -0500
changeset 174521 3b6eb557374c83636401ec747118619fff7c6f64
parent 174464 1426ffa9caf2bbae538668fcd09d4411061a1a8e
child 174522 d62e92066e8710303e142740d9818a064006f84f
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspaul
bugs946222
milestone28.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 946222 - Fix responsive design touch events against gaia. r=paul
browser/devtools/responsivedesign/responsivedesign.jsm
--- a/browser/devtools/responsivedesign/responsivedesign.jsm
+++ b/browser/devtools/responsivedesign/responsivedesign.jsm
@@ -198,17 +198,17 @@ function ResponsiveUI(aWindow, aTab)
     switchToFloatingScrollbars(this.tab);
 
   this.tab.__responsiveUI = this;
 
   this._telemetry.toolOpened("responsive");
 
   // Touch events support
   this.touchEnableBefore = false;
-  this.touchEventHandler = new TouchEventHandler(this.browser.contentWindow);
+  this.touchEventHandler = new TouchEventHandler(this.browser);
 
   this.browser.addEventListener("load", this.bound_onPageLoad, true);
   this.browser.addEventListener("unload", this.bound_onPageUnload, true);
 
   if (this.browser.contentWindow.document &&
       this.browser.contentWindow.document.readyState == "complete") {
     this.onPageLoad();
   }
@@ -227,17 +227,17 @@ ResponsiveUI.prototype = {
       this.stack.setAttribute("notransition", "true");
     }
   },
 
   /**
    * Window onload / onunload
    */
    onPageLoad: function() {
-     this.touchEventHandler = new TouchEventHandler(this.browser.contentWindow);
+     this.touchEventHandler = new TouchEventHandler(this.browser);
      if (this.touchEnableBefore) {
        this.enableTouch();
      }
    },
 
    onPageUnload: function() {
      if (this.closing)
        return;