Bug 985867 - Fix touch/click ordering on about:addons page. r=mfinkle a=lsblakk
authorWes Johnston <wjohnston@mozilla.com>
Fri, 30 May 2014 09:55:52 -0700
changeset 199391 8182fa6b12e23fa254ca49a09e4e613a1b368fed
parent 199390 1d0439f0c043a659a08760239217dc4b6ed94150
child 199392 2d80998069cdf01d435afea2fbc656f3e0441773
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, lsblakk
bugs985867
milestone31.0a2
Bug 985867 - Fix touch/click ordering on about:addons page. r=mfinkle a=lsblakk
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;
     }