Bug 1453957 - Stop setting the "unread" attribute on tabs. r=dao
authorvidit23 <viditvineet@hotmail.com>
Fri, 04 May 2018 19:46:17 +0200
changeset 473075 92a50917efbca7ee1ad3f5c9bc8358b3f6bc7a2f
parent 473074 b95fbd8db183e66d9880c2b407c342ef9ed7230a
child 473076 f529be04c5a759773485245b38d75d50a358710c
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1453957
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1453957 - Stop setting the "unread" attribute on tabs. r=dao
browser/base/content/tabbrowser.js
--- a/browser/base/content/tabbrowser.js
+++ b/browser/base/content/tabbrowser.js
@@ -972,17 +972,16 @@ window._gBrowser = {
       this._callProgressListeners(null, "onUpdateCurrentBrowser",
                                   [listener.mStateFlags, listener.mStatus,
                                    listener.mMessage, listener.mTotalProgress],
                                   true, false);
     }
 
     if (!this._previewMode) {
       newTab.updateLastAccessed();
-      newTab.removeAttribute("unread");
       oldTab.updateLastAccessed();
 
       let oldFindBar = oldTab._findBar;
       if (oldFindBar &&
           oldFindBar.findMode == oldFindBar.FIND_NORMAL &&
           !oldFindBar.hidden)
         this._lastFindValue = oldFindBar._findField.value;
 
@@ -4384,18 +4383,16 @@ class TabProgressListener {
           } else {
             this.mTab.removeAttribute("notselectedsinceload");
           }
 
           this.mTab.setAttribute("bursting", "true");
         }
 
         gBrowser._tabAttrModified(this.mTab, ["busy"]);
-        if (!this.mTab.selected)
-          this.mTab.setAttribute("unread", "true");
       }
       this.mTab.removeAttribute("progress");
 
       if (aWebProgress.isTopLevel) {
         let isSuccessful = Components.isSuccessCode(aStatus);
         if (!isSuccessful && !isTabEmpty(this.mTab)) {
           // Restore the current document's location in case the
           // request was stopped (possibly from a content script)