feat: restore "unread" tab Attribute
This commit is contained in:
committed by
Alex Kontos
parent
a626bdb343
commit
c83e186cfb
@@ -1303,6 +1303,7 @@
|
|||||||
if (!this._previewMode) {
|
if (!this._previewMode) {
|
||||||
newTab.recordTimeFromUnloadToReload();
|
newTab.recordTimeFromUnloadToReload();
|
||||||
newTab.updateLastAccessed();
|
newTab.updateLastAccessed();
|
||||||
|
newTab.removeAttribute("unread");
|
||||||
oldTab.updateLastAccessed();
|
oldTab.updateLastAccessed();
|
||||||
// if this is the foreground window, update the last-seen timestamps.
|
// if this is the foreground window, update the last-seen timestamps.
|
||||||
if (this.ownerGlobal == BrowserWindowTracker.getTopWindow()) {
|
if (this.ownerGlobal == BrowserWindowTracker.getTopWindow()) {
|
||||||
@@ -8133,6 +8134,9 @@
|
|||||||
|
|
||||||
this.mTab.setAttribute("bursting", "true");
|
this.mTab.setAttribute("bursting", "true");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.mTab.selected)
|
||||||
|
this.mTab.setAttribute("unread", "true");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.mTab.hasAttribute("progress")) {
|
if (this.mTab.hasAttribute("progress")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user