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 1945 a589f0fde01ad8330dbc0fe53274f4b2fa094718
parent 1944 26b24176794c6311662927b5e795ecc0321429dd
child 1946 2024bdb2f97f87cef4cbe1bd2c02d2d381f14c63
push id1710
push usermbrubeck@mozilla.com
push dateWed, 15 Sep 2010 07:55:18 +0000
reviewersmfinkle
bugs542735
Bug 542735 - Fire a mousemove event at the start of a click [r=mfinkle]
chrome/content/content.js
--- a/chrome/content/content.js
+++ b/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();