chore: Completly migrated to firefox 138, b=(no-bug), c=tabs, common, folders, glance

This commit is contained in:
Mr. M 2025-04-19 16:03:15 +02:00
parent 2e6e71e3b6
commit 2fcf6c80e9
No known key found for this signature in database
GPG key ID: 6292C4C8F8652B18
6 changed files with 139 additions and 78 deletions

View file

@ -1,8 +1,8 @@
diff --git a/browser/components/tabbrowser/content/tabbrowser.js b/browser/components/tabbrowser/content/tabbrowser.js
index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9f61ca14c 100644
index bfba253af3253a8cf547a5d69a1695651fc5c203..24cedfa868878d1619c9d9d04a060a0b930f411c 100644
--- a/browser/components/tabbrowser/content/tabbrowser.js
+++ b/browser/components/tabbrowser/content/tabbrowser.js
@@ -415,11 +415,67 @@
@@ -415,11 +415,71 @@
return this.tabContainer.visibleTabs;
}
@ -19,6 +19,10 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
+ return i;
+ }
+
+ zenInsertTabAtIndex(...args) {
+ return this.#insertTabAtElementIndex(...args);
+ }
+
+ get _numVisiblePinTabsWithoutCollapsed() {
+ let i = 0;
+ for (let item of this.tabContainer.ariaFocusableItems) {
@ -72,7 +76,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
}
return i;
}
@@ -549,6 +605,7 @@
@@ -549,6 +609,7 @@
this.tabpanels.appendChild(panel);
let tab = this.tabs[0];
@ -80,7 +84,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
tab.linkedPanel = uniqueId;
this._selectedTab = tab;
this._selectedBrowser = browser;
@@ -814,11 +871,13 @@
@@ -814,11 +875,13 @@
}
this.showTab(aTab);
@ -97,7 +101,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
this.moveTabTo(aTab, {
tabIndex: this.pinnedTabCount,
forceUngrouped: true,
@@ -835,12 +894,15 @@
@@ -835,12 +898,15 @@
}
if (this.tabContainer.verticalMode) {
@ -114,7 +118,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
});
} else {
this.moveTabTo(aTab, {
@@ -1024,6 +1086,8 @@
@@ -1024,6 +1090,8 @@
let LOCAL_PROTOCOLS = ["chrome:", "about:", "resource:", "data:"];
@ -123,7 +127,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (
aIconURL &&
!aLoadingPrincipal &&
@@ -1034,6 +1098,9 @@
@@ -1034,6 +1102,9 @@
);
return;
}
@ -133,7 +137,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
let browser = this.getBrowserForTab(aTab);
browser.mIconURL = aIconURL;
@@ -1283,6 +1350,7 @@
@@ -1283,6 +1354,7 @@
if (!this._previewMode) {
newTab.recordTimeFromUnloadToReload();
newTab.updateLastAccessed();
@ -141,7 +145,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
oldTab.updateLastAccessed();
// if this is the foreground window, update the last-seen timestamps.
if (this.ownerGlobal == BrowserWindowTracker.getTopWindow()) {
@@ -1435,6 +1503,9 @@
@@ -1435,6 +1507,9 @@
}
let activeEl = document.activeElement;
@ -151,7 +155,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
// If focus is on the old tab, move it to the new tab.
if (activeEl == oldTab) {
newTab.focus();
@@ -1758,7 +1829,8 @@
@@ -1758,7 +1833,8 @@
}
_setTabLabel(aTab, aLabel, { beforeTabOpen, isContentTitle, isURL } = {}) {
@ -161,7 +165,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
return false;
}
@@ -1866,7 +1938,7 @@
@@ -1866,7 +1942,7 @@
newIndex = this.selectedTab._tPos + 1;
}
@ -170,7 +174,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (this.isTabGroupLabel(targetTab)) {
throw new Error(
"Replacing a tab group label with a tab is not supported"
@@ -2130,6 +2202,7 @@
@@ -2130,6 +2206,7 @@
uriIsAboutBlank,
userContextId,
skipLoad,
@ -178,7 +182,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
} = {}) {
let b = document.createXULElement("browser");
// Use the JSM global to create the permanentKey, so that if the
@@ -2203,8 +2276,7 @@
@@ -2203,8 +2280,7 @@
// we use a different attribute name for this?
b.setAttribute("name", name);
}
@ -188,7 +192,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
b.setAttribute("transparent", "true");
}
@@ -2369,7 +2441,7 @@
@@ -2369,7 +2445,7 @@
let panel = this.getPanel(browser);
let uniqueId = this._generateUniquePanelID();
@ -197,7 +201,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
aTab.linkedPanel = uniqueId;
// Inject the <browser> into the DOM if necessary.
@@ -2428,8 +2500,8 @@
@@ -2428,8 +2504,8 @@
// If we transitioned from one browser to two browsers, we need to set
// hasSiblings=false on both the existing browser and the new browser.
if (this.tabs.length == 2) {
@ -208,7 +212,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
} else {
aTab.linkedBrowser.browsingContext.hasSiblings = this.tabs.length > 1;
}
@@ -2657,6 +2729,7 @@
@@ -2657,6 +2733,7 @@
schemelessInput,
hasValidUserGestureActivation = false,
textDirectiveUserActivation = false,
@ -216,7 +220,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
} = {}
) {
// all callers of addTab that pass a params object need to pass
@@ -2667,6 +2740,12 @@
@@ -2667,6 +2744,12 @@
);
}
@ -229,7 +233,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (!UserInteraction.running("browser.tabs.opening", window)) {
UserInteraction.start("browser.tabs.opening", "initting", window);
}
@@ -2730,6 +2809,16 @@
@@ -2730,6 +2813,16 @@
noInitialLabel,
skipBackgroundNotify,
});
@ -246,7 +250,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (insertTab) {
if (typeof index == "number") {
elementIndex = this.#tabIndexToElementIndex(index);
@@ -2756,6 +2845,7 @@
@@ -2756,6 +2849,7 @@
initialBrowsingContextGroupId,
openWindowInfo,
skipLoad,
@ -254,7 +258,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
}));
if (focusUrlBar) {
@@ -2875,6 +2965,9 @@
@@ -2875,6 +2969,9 @@
}
}
@ -264,7 +268,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
// Additionally send pinned tab events
if (pinned) {
this._notifyPinnedStatus(t);
@@ -2922,12 +3015,15 @@
@@ -2922,12 +3019,15 @@
* @param {string} [label=]
* @returns {MozTabbrowserTabGroup}
*/
@ -281,7 +285,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
return group;
}
@@ -2970,6 +3066,7 @@
@@ -2970,6 +3070,7 @@
insertBefore = null,
isUserTriggered = false,
telemetryUserCreateSource = "unknown",
@ -289,7 +293,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
} = {}
) {
if (!tabs?.length) {
@@ -2988,7 +3085,12 @@
@@ -2988,7 +3089,12 @@
id = `${Date.now()}-${Math.round(Math.random() * 100)}`;
}
let group = this._createTabGroup(id, color, false, label);
@ -303,7 +307,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
group,
insertBefore?.group ?? insertBefore
);
@@ -3318,6 +3420,7 @@
@@ -3318,6 +3424,7 @@
initialBrowsingContextGroupId,
openWindowInfo,
skipLoad,
@ -311,7 +315,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
}
) {
// If we don't have a preferred remote type, and we have a remote
@@ -3381,6 +3484,7 @@
@@ -3381,6 +3488,7 @@
openWindowInfo,
name,
skipLoad,
@ -319,7 +323,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
});
}
@@ -3559,6 +3663,27 @@
@@ -3559,6 +3667,27 @@
) {
tabWasReused = true;
tab = this.selectedTab;
@ -347,7 +351,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (!tabData.pinned) {
this.unpinTab(tab);
} else {
@@ -3607,8 +3732,28 @@
@@ -3607,8 +3736,28 @@
skipLoad: true,
preferredRemoteType,
});
@ -378,7 +382,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
tabToSelect = tab;
}
}
@@ -3620,8 +3765,8 @@
@@ -3620,8 +3769,8 @@
// inserted in the DOM. If the tab is not yet in the DOM,
// just insert it in the right place from the start.
if (!tab.parentNode) {
@ -389,7 +393,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
tab.toggleAttribute("pinned", true);
this.tabContainer._invalidateCachedTabs();
// Then ensure all the tab open/pinning information is sent.
@@ -3631,7 +3776,8 @@
@@ -3631,7 +3780,8 @@
// needs calling:
shouldUpdateForPinnedTabs = true;
}
@ -399,7 +403,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
let { groupId } = tabData;
const tabGroup = tabGroupWorkingData.get(groupId);
// if a tab refers to a tab group we don't know, skip any group
@@ -3645,7 +3791,10 @@
@@ -3645,7 +3795,10 @@
tabGroup.stateData.id,
tabGroup.stateData.color,
tabGroup.stateData.collapsed,
@ -411,7 +415,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
);
tabsFragment.appendChild(tabGroup.node);
}
@@ -3696,6 +3845,9 @@
@@ -3696,6 +3849,9 @@
this.selectedTab = tabToSelect;
this.removeTab(leftoverTab);
}
@ -421,7 +425,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (tabs.length > 1 || !tabs[0].selected) {
this._updateTabsAfterInsert();
@@ -3882,7 +4034,7 @@
@@ -3882,7 +4038,7 @@
// Ensure we have an index if one was not provided.
if (typeof index != "number") {
// Move the new tab after another tab if needed, to the end otherwise.
@ -430,7 +434,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (
!bulkOrderedOpen &&
((openerTab &&
@@ -3928,18 +4080,18 @@
@@ -3928,18 +4084,18 @@
// Ensure index is within bounds.
if (tab.pinned) {
@ -453,7 +457,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (this.isTab(itemAfter) && itemAfter.group == tabGroup) {
// Place at the front of, or between tabs in, the same tab group
this.tabContainer.insertBefore(tab, itemAfter);
@@ -4260,6 +4412,9 @@
@@ -4260,6 +4416,9 @@
return;
}
@ -463,7 +467,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
this.removeTabs(selectedTabs, { telemetrySource });
}
@@ -4512,6 +4667,7 @@
@@ -4512,6 +4671,7 @@
telemetrySource,
} = {}
) {
@ -471,7 +475,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
// When 'closeWindowWithLastTab' pref is enabled, closing all tabs
// can be considered equivalent to closing the window.
if (
@@ -4596,6 +4752,7 @@
@@ -4596,6 +4756,7 @@
if (lastToClose) {
this.removeTab(lastToClose, aParams);
}
@ -479,7 +483,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
} catch (e) {
console.error(e);
}
@@ -4620,6 +4777,7 @@
@@ -4620,6 +4781,7 @@
telemetrySource,
} = {}
) {
@ -487,7 +491,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (UserInteraction.running("browser.tabs.opening", window)) {
UserInteraction.finish("browser.tabs.opening", window);
}
@@ -4633,6 +4791,12 @@
@@ -4633,6 +4795,12 @@
aTab._closeTimeNoAnimTimerId = Glean.browserTabclose.timeNoAnim.start();
}
@ -500,7 +504,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
// Handle requests for synchronously removing an already
// asynchronously closing tab.
if (!animate && aTab.closing) {
@@ -4647,7 +4811,9 @@
@@ -4647,7 +4815,9 @@
// frame created for it (for example, by updating the visually selected
// state).
let tabWidth = window.windowUtils.getBoundsWithoutFlushing(aTab).width;
@ -511,7 +515,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (
!this._beginRemoveTab(aTab, {
closeWindowFastpath: true,
@@ -4810,7 +4976,7 @@
@@ -4810,7 +4980,7 @@
closeWindowWithLastTab != null
? closeWindowWithLastTab
: !window.toolbar.visible ||
@ -520,7 +524,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (closeWindow) {
// We've already called beforeunload on all the relevant tabs if we get here,
@@ -4834,6 +5000,7 @@
@@ -4834,6 +5004,7 @@
newTab = true;
}
@ -528,7 +532,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
aTab._endRemoveArgs = [closeWindow, newTab];
// swapBrowsersAndCloseOther will take care of closing the window without animation.
@@ -4873,9 +5040,7 @@
@@ -4873,9 +5044,7 @@
aTab._mouseleave();
if (newTab) {
@ -539,7 +543,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
} else {
TabBarVisibility.update();
}
@@ -5004,6 +5169,8 @@
@@ -5004,6 +5173,8 @@
this.tabs[i]._tPos = i;
}
@ -548,7 +552,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (!this._windowIsClosing) {
if (wasPinned) {
this.tabContainer._positionPinnedTabs();
@@ -5129,8 +5296,8 @@
@@ -5129,8 +5300,8 @@
return closedCount;
}
@ -559,7 +563,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (unloadBlocked) {
return;
}
@@ -5230,13 +5397,13 @@
@@ -5230,13 +5401,13 @@
!excludeTabs.has(aTab.owner) &&
Services.prefs.getBoolPref("browser.tabs.selectOwnerOnClose")
) {
@ -575,7 +579,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
);
let tab = this.tabContainer.findNextTab(aTab, {
@@ -5252,7 +5419,7 @@
@@ -5252,7 +5423,7 @@
}
if (tab) {
@ -584,7 +588,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
}
// If no qualifying visible tab was found, see if there is a tab in
@@ -5273,7 +5440,7 @@
@@ -5273,7 +5444,7 @@
});
}
@ -593,7 +597,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
}
_blurTab(aTab) {
@@ -5674,10 +5841,10 @@
@@ -5674,10 +5845,10 @@
SessionStore.deleteCustomTabValue(aTab, "hiddenBy");
}
@ -606,7 +610,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
aTab.selected ||
aTab.closing ||
// Tabs that are sharing the screen, microphone or camera cannot be hidden.
@@ -5971,7 +6138,7 @@
@@ -5971,7 +6142,7 @@
// Don't allow mixing pinned and unpinned tabs.
if (this.isTab(element) && element.pinned) {
@ -615,7 +619,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
} else {
tabIndex = Math.max(tabIndex, this.pinnedTabCount);
}
@@ -5998,9 +6165,16 @@
@@ -5998,9 +6169,16 @@
element,
() => {
let neighbor = this.tabs[tabIndex];
@ -633,7 +637,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (neighbor && this.isTab(element) && tabIndex > element._tPos) {
neighbor.after(element);
} else {
@@ -6069,7 +6243,9 @@
@@ -6069,7 +6247,9 @@
targetElement = targetElement.group;
}
}
@ -644,7 +648,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
// Don't allow mixing pinned and unpinned tabs.
if (element.pinned && !targetElement?.pinned) {
targetElement = this.tabs[this.pinnedTabCount - 1];
@@ -6079,7 +6255,13 @@
@@ -6079,7 +6259,13 @@
moveBefore = true;
}
@ -658,7 +662,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (element.pinned && this.tabContainer.verticalMode) {
return this.tabContainer.verticalPinnedTabsContainer;
}
@@ -6139,7 +6321,7 @@
@@ -6139,7 +6325,7 @@
if (!this.isTab(aTab)) {
throw new Error("Can only move a tab into a tab group");
}
@ -667,7 +671,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
return;
}
if (aTab.group && aTab.group.id === aGroup.id) {
@@ -6233,6 +6415,10 @@
@@ -6233,6 +6419,10 @@
moveActionCallback();
@ -678,7 +682,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
// Clear tabs cache after moving nodes because the order of tabs may have
// changed.
this.tabContainer._invalidateCachedTabs();
@@ -6290,7 +6476,7 @@
@@ -6290,7 +6480,7 @@
createLazyBrowser,
};
@ -687,7 +691,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
if (
elementIndex < numPinned ||
(aTab.pinned && elementIndex == numPinned)
@@ -7050,7 +7236,7 @@
@@ -7050,7 +7240,7 @@
// preventDefault(). It will still raise the window if appropriate.
break;
}
@ -696,7 +700,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
window.focus();
aEvent.preventDefault();
break;
@@ -7951,6 +8137,7 @@
@@ -7951,6 +8141,7 @@
aWebProgress.isTopLevel
) {
this.mTab.setAttribute("busy", "true");
@ -704,7 +708,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
gBrowser._tabAttrModified(this.mTab, ["busy"]);
this.mTab._notselectedsinceload = !this.mTab.selected;
}
@@ -8924,7 +9111,7 @@ var TabContextMenu = {
@@ -8924,7 +9115,7 @@ var TabContextMenu = {
);
contextUnpinSelectedTabs.hidden =
!this.contextTab.pinned || !this.multiselected;
@ -713,7 +717,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
// Move Tab items
let contextMoveTabOptions = document.getElementById(
"context_moveTabOptions"
@@ -8958,7 +9145,7 @@ var TabContextMenu = {
@@ -8958,7 +9149,7 @@ var TabContextMenu = {
let isFirstTab =
!this.contextTabs[0].group &&
(this.contextTabs[0] == visibleTabs[0] ||
@ -722,7 +726,7 @@ index bfba253af3253a8cf547a5d69a1695651fc5c203..1ba8b8c51f27d92222f1e682681cf9c9
contextMoveTabToStart.disabled = isFirstTab && allSelectedTabsAdjacent;
document.getElementById("context_openTabInWindow").disabled =
@@ -9193,6 +9380,7 @@ var TabContextMenu = {
@@ -9193,6 +9384,7 @@ var TabContextMenu = {
telemetrySource: gBrowser.TabMetrics.METRIC_SOURCE.TAB_STRIP,
});
} else {