зеркало из https://github.com/mozilla/pjs.git
fix 339391 loaded message scrolls back to top if incoming message is classified as junk, sr=mscott
This commit is contained in:
Родитель
bcc478294a
Коммит
27381e8cb7
|
@ -2151,9 +2151,11 @@ function HandleJunkStatusChanged(folder)
|
|||
var msgHdr = null;
|
||||
if (GetNumSelectedMessages() == 1)
|
||||
msgHdr = messenger.msgHdrFromURI(loadedMessage);
|
||||
var junkBarWasDisplayed = gMessageNotificationBar.isFlagSet(kMsgNotificationJunkBar);
|
||||
gMessageNotificationBar.setJunkMsg(msgHdr);
|
||||
|
||||
if (msgHdr)
|
||||
|
||||
// only reload message if junk bar display state has changed.
|
||||
if (msgHdr && junkBarWasDisplayed != gMessageNotificationBar.isFlagSet(kMsgNotificationJunkBar))
|
||||
{
|
||||
// we may be forcing junk mail to be rendered with sanitized html. In that scenario, we want to
|
||||
// reload the message if the status has just changed to not junk.
|
||||
|
|
Загрузка…
Ссылка в новой задаче