Bug 784472 - Long press on text selection should show context menus again. r=wesj
authorMichael Comella <michael.l.comella@gmail.com>
Wed, 22 Aug 2012 19:52:54 -0400
changeset 105117 7f20dca58350d92becc25f5e63b62074d88dc45a
parent 105116 daa163c8e26b4a9745fd005e9aaef7ddfc41cd80
child 105118 fc19d9b5a5318945648f42ed8af1c643b48dbdd5
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewerswesj
bugs784472
milestone17.0a1
Bug 784472 - Long press on text selection should show context menus again. r=wesj
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -1379,17 +1379,17 @@ var NativeWindow = {
       this.menuitems = {};
       let menuitemsSet = false;
       let element = rootElement;
       if (!element)
         return;
 
       while (element) {
         for each (let item in this.items) {
-          if (!this.menuitems[item.id] && item.matches(element)) {
+          if (!this.menuitems[item.id] && item.matches(element, aX, aY)) {
             this.menuitems[item.id] = item;
             menuitemsSet = true;
           }
         }
 
         if (this.linkOpenableContext.matches(element) || this.textContext.matches(element))
           break;
         element = element.parentNode;