Bug 985867 - Fix touch/click ordering on about:addons page. r=mfinkle a=lsblakk CLOSED TREE
authorWes Johnston <wjohnston@mozilla.com>
Fri, 30 May 2014 09:55:52 -0700
changeset 192428 cf8a98b27b097ea76e99a713f8c44dcf8e4fb611
parent 192427 4fd52b457b2b3addc6b97619bf3dc0a2fbc6cf4a
child 192429 d0d303eed28d796f032f7a81a9f9a93960233338
child 192431 6da3dd0a2e7bd557b29842de29b3363afc427601
push id3620
push userwjohnston@mozilla.com
push dateMon, 02 Jun 2014 20:57:20 +0000
treeherdermozilla-beta@cf8a98b27b09 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, lsblakk
bugs985867
milestone30.0
Bug 985867 - Fix touch/click ordering on about:addons page. r=mfinkle a=lsblakk CLOSED TREE
mobile/android/chrome/content/aboutAddons.js
--- a/mobile/android/chrome/content/aboutAddons.js
+++ b/mobile/android/chrome/content/aboutAddons.js
@@ -27,16 +27,19 @@ var ContextMenus = {
   target: null,
 
   init: function() {
     document.addEventListener("contextmenu", this, false);
 
     document.getElementById("contextmenu-enable").addEventListener("click", ContextMenus.enable.bind(this), false);
     document.getElementById("contextmenu-disable").addEventListener("click", ContextMenus.disable.bind(this), false);
     document.getElementById("contextmenu-uninstall").addEventListener("click", ContextMenus.uninstall.bind(this), false);
+
+    // XXX - Hack to fix bug 985867 for now
+    document.addEventListener("touchstart", function() { });
   },
 
   handleEvent: function(event) {
     // store the target of context menu events so that we know which app to act on
     this.target = event.target;
     while (!this.target.hasAttribute("contextmenu")) {
       this.target = this.target.parentNode;
     }