Bug 1489505 - about:performance items should all have a name, r=felipe.
authorFlorian Quèze <florian@queze.net>
Mon, 10 Sep 2018 21:43:46 +0200
changeset 435535 71f1b10216325949ba2ad0fa1deb1990efa41517
parent 435534 69dbe6a2b4c348486448f8105baf31fa478288b3
child 435536 063d1353ec22875c51b7b58e0f23806d0c5f0fdf
push id107661
push userflorian@queze.net
push dateMon, 10 Sep 2018 19:44:09 +0000
treeherdermozilla-inbound@063d1353ec22 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfelipe
bugs1489505
milestone64.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 1489505 - about:performance items should all have a name, r=felipe.
toolkit/components/aboutperformance/content/aboutPerformance.js
--- a/toolkit/components/aboutperformance/content/aboutPerformance.js
+++ b/toolkit/components/aboutperformance/content/aboutPerformance.js
@@ -607,21 +607,21 @@ var State = {
       let prev = previous[id];
       let dispatches = tab.dispatchCount;
       let host = tab.host;
 
       let name = `${host} (${id})`;
       let image = "chrome://mozapps/skin/places/defaultFavicon.svg";
       let found = tabFinder.get(parseInt(id));
       if (found) {
-        name = found.tab.linkedBrowser.contentTitle;
         if (found.tabbrowser) {
+          name = found.tab.getAttribute("label");
           image = found.tab.getAttribute("image");
         } else {
-          name = "Preloaded: " + name;
+          name = "Preloaded: " + found.tab.linkedBrowser.contentTitle;
         }
       } else if (id == 1) {
         name = BRAND_NAME;
         image = "chrome://branding/content/icon32.png";
       } else if (/^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$/.test(host)) {
         let addon = WebExtensionPolicy.getByHostname(host);
         name = `${addon.name} (${addon.id})`;
         image = "chrome://mozapps/skin/extensions/extensionGeneric-16.svg";