Bug 1542791 - Part 2: Add a [F] marker to fission-enabled tabs, r=mconley

This should make it easier to tell whether a particular window is
fission-enabled as testing with fission enabled improves.

Differential Revision: https://phabricator.services.mozilla.com/D26561

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nika Layzell 2019-04-17 00:53:30 +00:00
Родитель 40f96bcf80
Коммит f7ae25cb52
1 изменённых файлов: 10 добавлений и 5 удалений

Просмотреть файл

@ -4261,11 +4261,16 @@ window._gBrowser = {
}
} else {
label = tab._fullLabel || tab.getAttribute("label");
if (AppConstants.NIGHTLY_BUILD &&
tab.linkedBrowser &&
tab.linkedBrowser.isRemoteBrowser &&
tab.linkedBrowser.frameLoader) {
label += " (pid " + tab.linkedBrowser.frameLoader.tabParent.osPid + ")";
if (AppConstants.NIGHTLY_BUILD) {
if (tab.linkedBrowser &&
tab.linkedBrowser.isRemoteBrowser &&
tab.linkedBrowser.frameLoader) {
label += " (pid " + tab.linkedBrowser.frameLoader.tabParent.osPid + ")";
if (window.docShell.QueryInterface(Ci.nsILoadContext).useRemoteSubframes) {
label += " [F]";
}
}
}
if (tab.userContextId) {
label = gTabBrowserBundle.formatStringFromName("tabs.containers.tooltip", [label, ContextualIdentityService.getUserContextLabel(tab.userContextId)], 2);