From c83e186cfb9bc7e2a7e89294ff91826fefd6bb23 Mon Sep 17 00:00:00 2001 From: goodusername123 <61405538+goodusername123@users.noreply.github.com> Date: Sun, 13 Oct 2024 03:26:27 -0500 Subject: [PATCH] feat: restore "unread" tab Attribute --- browser/components/tabbrowser/content/tabbrowser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/components/tabbrowser/content/tabbrowser.js b/browser/components/tabbrowser/content/tabbrowser.js index f5ee4ce63dcd..e32a1c526aaf 100644 --- a/browser/components/tabbrowser/content/tabbrowser.js +++ b/browser/components/tabbrowser/content/tabbrowser.js @@ -1303,6 +1303,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()) { @@ -8133,6 +8134,9 @@ this.mTab.setAttribute("bursting", "true"); } + + if (!this.mTab.selected) + this.mTab.setAttribute("unread", "true"); } if (this.mTab.hasAttribute("progress")) {