Bug 681640 - Send mouse events to form fields when they are focused in Fennec [r=mbrubeck]

This commit is contained in:
Martijn Wargers 2011-08-31 15:55:00 -07:00
parent 049f1f1cc4
commit ba0943e119

View File

@ -495,8 +495,9 @@ let Content = {
if (uri)
sendAsyncMessage("Browser:OpenURI", { uri: uri,
referrer: element.ownerDocument.documentURIObject.spec });
} else if (!this._formAssistant.open(element) && this._highlightElement) {
sendAsyncMessage("FindAssist:Hide", { });
} else if (this._highlightElement) {
if (!this._formAssistant.open(element))
sendAsyncMessage("FindAssist:Hide", { });
this._sendMouseEvent("mousemove", this._highlightElement, x, y);
this._sendMouseEvent("mousedown", this._highlightElement, x, y);
this._sendMouseEvent("mouseup", this._highlightElement, x, y);