Bug 1445455 - StatusPanel needs to update label even when the label text has not changed. r?dao draft
authorMike Conley <mconley@mozilla.com>
Tue, 13 Mar 2018 17:27:06 -0400
changeset 767409 2d8e5c7130bdb216f00324a2b20203b3b50d2d6e
parent 766824 8f1b2f872f0ea358a0412eb8b8687f08d47f6621
child 767410 cc407dc067e6f071c5532919daa969a5e549accf
push id102594
push usermconley@mozilla.com
push dateWed, 14 Mar 2018 15:40:10 +0000
reviewersdao
bugs1445455
milestone61.0a1
Bug 1445455 - StatusPanel needs to update label even when the label text has not changed. r?dao MozReview-Commit-ID: BhfFZ14IEB8
browser/base/content/tabbrowser.js
--- a/browser/base/content/tabbrowser.js
+++ b/browser/base/content/tabbrowser.js
@@ -4619,17 +4619,18 @@ let StatusPanel = {
     }
     types.push("defaultStatus");
     for (type of types) {
       if ((text = XULBrowserWindow[type])) {
         break;
       }
     }
 
-    if (this._labelElement.value != text) {
+    if (this._labelElement.value != text ||
+        (text && !this.isVisible)) {
       this.panel.setAttribute("previoustype", this.panel.getAttribute("type"));
       this.panel.setAttribute("type", type);
       this._label = text;
       this._labelElement.setAttribute("crop", type == "overLink" ? "center" : "end");
     }
   },
 
   get _labelElement() {