diff --git a/mail/base/content/mailWindowOverlay.js b/mail/base/content/mailWindowOverlay.js index 3bfbb5ed7e71..61249be3ee1b 100644 --- a/mail/base/content/mailWindowOverlay.js +++ b/mail/base/content/mailWindowOverlay.js @@ -2295,9 +2295,13 @@ function ClearPendingReadTimer() // mail message. OnMsgLoaded is called when libmime is done parsing the message function OnMsgParsed(aUrl) { - if ("onQuickSearchNewMsgLoaded" in this) - onQuickSearchNewMsgLoaded(); - + // browser doesn't do this, but I thought it could be a useful thing to test out... + // If the find bar is visible and we just loaded a new message, re-run + // the find command. This means the new message will get highlighted and + // we'll scroll to the first word in the message that matches the find text. + if (gFindBar.isFindBarVisible()) + gFindBar.find(); + gMessageNotificationBar.setPhishingMsg(aUrl); } diff --git a/mail/base/content/mailWindowOverlay.xul b/mail/base/content/mailWindowOverlay.xul index c96ff1af497d..ba75745a3360 100644 --- a/mail/base/content/mailWindowOverlay.xul +++ b/mail/base/content/mailWindowOverlay.xul @@ -1973,13 +1973,11 @@ + oncommand="changeQuickSearchMode(this)"/> -