Bug 542735 - Fire a mousemove event at the start of a click [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Wed, 15 Sep 2010 00:54:45 -0700
changeset 66589 5e9c812b39ab4420dd9df34dc0dc7c49cfd7f938
parent 66588 3d28778f8e58f04746a739a62b281d11605b4bbb
child 66590 7d030abb71e941ce7e8102ab9aba524a7427bb9c
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs542735
Bug 542735 - Fire a mousemove event at the start of a click [r=mfinkle]
mobile/chrome/content/content.js
--- a/mobile/chrome/content/content.js
+++ b/mobile/chrome/content/content.js
@@ -511,16 +511,17 @@ Content.prototype = {
       case "Browser:MouseUp": {
         let element = elementFromPoint(x, y);
         if (modifiers == Ci.nsIDOMNSEvent.CONTROL_MASK) {
           let uri = Util.getHrefForElement(element);
           if (uri)
             sendAsyncMessage("Browser:OpenURI", { uri: uri });
         } else if (!this._formAssistant.open(element)) {
           sendAsyncMessage("FindAssist:Hide", { });
+          this._sendMouseEvent("mousemove", element, x, y);
           this._sendMouseEvent("mousedown", element, x, y);
           this._sendMouseEvent("mouseup", element, x, y);
         }
         break;
       }
 
       case "Browser:MouseCancel":
         this._overlayTimeout.clear();