From 4924756ffa70a6c5e8a730014bd6d71a99021861 Mon Sep 17 00:00:00 2001 From: Len Date: Sat, 8 Oct 2011 10:34:20 +0200 Subject: [PATCH] Bug 687754 - Don't remove unread in preview mode. r=dao --- browser/base/content/tabbrowser.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index ddd854300038..f18021f3ee32 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -876,7 +876,6 @@ (window.windowState != window.STATE_MINIMIZED); this.mCurrentBrowser = newBrowser; this.mCurrentTab = this.selectedTab; - this.mCurrentTab.removeAttribute("unread"); this.showTab(this.mCurrentTab); if (updatePageReport) @@ -909,8 +908,9 @@ true, false); } - // Don't switch the fast find or update the titlebar (bug 540248) - this tab switch is temporary if (!this._previewMode) { + this.mCurrentTab.removeAttribute("unread"); + #ifdef MOZ_E10S_COMPAT // Bug 666816 - TypeAheadFind support for e10s #else