Bug 1318491 - Adding in container name to the tab title tooltip draft
authorJonathan Kingston <jkt@mozilla.com>
Thu, 24 Nov 2016 17:54:47 +0000
changeset 443611 ebea7bc699bb4aeb15e8bccfd4e3cb97a1e56238
parent 443220 34fce7c12173bdd6dda54c2ebf6d344252f1ac48
child 538086 e2e3645536fefb086afa55464ebb69549f507e1f
push id37029
push userjkingston@mozilla.com
push dateThu, 24 Nov 2016 17:55:35 +0000
bugs1318491
milestone53.0a1
Bug 1318491 - Adding in container name to the tab title tooltip MozReview-Commit-ID: HIbNXzWKlZl
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -4586,16 +4586,20 @@
               }
 
               label = this.mStringBundle.getString(stringID);
             }
           } else {
             label = tab.getAttribute("label") +
                       (this.AppConstants.E10S_TESTING_ONLY && tab.linkedBrowser && tab.linkedBrowser.isRemoteBrowser ? " - e10s" : "");
           }
+
+          if (tab.userContextId) {
+            label += " - " + ContextualIdentityService.getUserContextLabel(tab.userContextId);
+          }
           event.target.setAttribute("label", label);
         ]]></body>
       </method>
 
       <method name="handleEvent">
         <parameter name="aEvent"/>
         <body><![CDATA[
           switch (aEvent.type) {