diff --git a/mobile/chrome/content/content.js b/mobile/chrome/content/content.js index 79ac4cbea57..2d1f3de8b25 100644 --- a/mobile/chrome/content/content.js +++ b/mobile/chrome/content/content.js @@ -495,8 +495,13 @@ let Content = { if (uri) sendAsyncMessage("Browser:OpenURI", { uri: uri, referrer: element.ownerDocument.documentURIObject.spec }); - } else if (!this._formAssistant.open(element) && this._highlightElement) { + break; + } + + if (!this._formAssistant.open(element)) sendAsyncMessage("FindAssist:Hide", { }); + + if (this._highlightElement) { this._sendMouseEvent("mousemove", this._highlightElement, x, y); this._sendMouseEvent("mousedown", this._highlightElement, x, y); this._sendMouseEvent("mouseup", this._highlightElement, x, y);