Bug 747792 - HasTouchListener notification should use the topmost window. r=kats a=akeybl
authorWes Johnston <wjohnston@mozilla.com>
Fri, 04 May 2012 14:38:43 -0700
changeset 94167 51e0f0461cbcdb2ac400f2ef9ac139abf951b488
parent 94166 60988141cc4e8e6f7ed2b04754b05b6b1e9ee943
child 94168 c035ee184c13abf82b589e8f71f7a9367353229d
push idunknown
push userunknown
push dateunknown
reviewerskats, akeybl
bugs747792
milestone14.0a2
Bug 747792 - HasTouchListener notification should use the topmost window. r=kats a=akeybl
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -2567,17 +2567,17 @@ var BrowserEventHandler = {
       closest = aEvent.target;
 
     if (closest)
       this._doTapHighlight(closest);
   },
 
   observe: function(aSubject, aTopic, aData) {
     if (aTopic == "dom-touch-listener-added") {
-      let tab = BrowserApp.getTabForWindow(aSubject);
+      let tab = BrowserApp.getTabForWindow(aSubject.top);
       if (!tab)
         return;
 
       sendMessageToJava({
         gecko: {
           type: "Tab:HasTouchListener",
           tabID: tab.id
         }