diff --git a/browser/components/tabbrowser/content/tabbrowser.js b/browser/components/tabbrowser/content/tabbrowser.js index c3ca2e04f8052..4f3294a768a00 100644 --- a/browser/components/tabbrowser/content/tabbrowser.js +++ b/browser/components/tabbrowser/content/tabbrowser.js @@ -1312,6 +1312,7 @@ if (!this._previewMode) { newTab.recordTimeFromUnloadToReload(); newTab.updateLastAccessed(); + newTab.removeAttribute("unread"); oldTab.updateLastAccessed(); // if this is the foreground window, update the last-seen timestamps. if (this.ownerGlobal == BrowserWindowTracker.getTopWindow()) { @@ -6997,6 +6998,9 @@ this.mTab.setAttribute("bursting", "true"); } + + if (!this.mTab.selected) + this.mTab.setAttribute("unread", "true"); } if (this.mTab.hasAttribute("progress")) {