Backed out changeset 6890499eb5d1 (bug 1484071) for ESlint failure at tabbrowser.js. CLOSED TREE
authorBrindusan Cristian <cbrindusan@mozilla.com>
Wed, 06 Mar 2019 01:42:21 +0200
changeset 520362 bd0449584cba8f18c4c9c5666ba4b7a459d573b7
parent 520361 6fa85e4e05636f782b5bcc935e0e87dcd60af1ba
child 520363 4f88eb70887ac247a2daef2c1f0675a6de89d012
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1484071
milestone67.0a1
backs out6890499eb5d12fe8bce5ce1289ecb052ceb89343
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
Backed out changeset 6890499eb5d1 (bug 1484071) for ESlint failure at tabbrowser.js. CLOSED TREE
browser/base/content/tabbrowser.js
--- a/browser/base/content/tabbrowser.js
+++ b/browser/base/content/tabbrowser.js
@@ -5343,36 +5343,23 @@ var StatusPanel = {
     }
     types.push("defaultStatus");
     for (type of types) {
       if ((text = XULBrowserWindow[type])) {
         break;
       }
     }
 
-    // If it's a long data: URI that uses base64 encoding, truncate to
-    // a reasonable length rather than trying to display the entire thing.
-    // We can't shorten arbitrary URIs like this, as bidi etc might mean
-    // we need the trailing characters for display. But a base64-encoded
-    // data-URI is plain ASCII, so this is OK for status panel display.
-    // (See bug 1484071.)
-    let textCropped = false;
-    if (text.length > 500 && text.match(/^data:[^,]+;base64,/)) {
-      text = text.substring(0, 500) + "\u2026";
-      textCropped = true;
-    }
-
     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" && !textCropped) ? "center" : "end");
-    }
-
+      this._labelElement.setAttribute("crop", type == "overLink" ? "center" : "end");
+    }
   },
 
   get _labelElement() {
     delete this._labelElement;
     return this._labelElement = document.getElementById("statuspanel-label");
   },
 
   set _label(val) {