feat: Hide change to tab context menu line, b=(no-bug), c=common, workspaces

This commit is contained in:
Mr. M
2025-05-07 16:51:50 +02:00
parent be1d8ec408
commit 414bafde9c
3 changed files with 7 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
diff --git a/browser/components/sessionstore/SessionStore.sys.mjs b/browser/components/sessionstore/SessionStore.sys.mjs
index 5633e5032f5d50c70512187d27e045b579978927..01df61b55b427212a61e6bc2de8c1df612055e1b 100644
index 5633e5032f5d50c70512187d27e045b579978927..6b9e56cb62a4812925ff812763ea9b0e6a478202 100644
--- a/browser/components/sessionstore/SessionStore.sys.mjs
+++ b/browser/components/sessionstore/SessionStore.sys.mjs
@@ -2081,7 +2081,6 @@ var SessionStoreInternal = {
@@ -68,7 +68,7 @@ index 5633e5032f5d50c70512187d27e045b579978927..01df61b55b427212a61e6bc2de8c1df6
continue;
}
let tabData = lazy.TabState.collect(tab, TAB_CUSTOM_VALUES.get(tab));
@@ -5442,10 +5443,13 @@ var SessionStoreInternal = {
@@ -5442,7 +5443,7 @@ var SessionStoreInternal = {
// We don't store the Firefox View tab in Session Store, so if it was the last selected "tab" when
// a window is closed, point to the first item in the tab strip instead (it will never be the Firefox View tab,
// since it's only inserted into the tab strip after it's selected).
@@ -77,13 +77,7 @@ index 5633e5032f5d50c70512187d27e045b579978927..01df61b55b427212a61e6bc2de8c1df6
selectedIndex = 1;
winData.title = tabbrowser.tabs[0].label;
}
+ if (!tabbrowser.selectedTab.pinned) {
+ selectedIndex += 1;
+ }
winData.selected = selectedIndex;
this._updateWindowFeatures(aWindow);
@@ -5599,6 +5603,7 @@ var SessionStoreInternal = {
@@ -5599,6 +5600,7 @@ var SessionStoreInternal = {
winData.tabs,
winData.groups ?? []
);
@@ -91,7 +85,7 @@ index 5633e5032f5d50c70512187d27e045b579978927..01df61b55b427212a61e6bc2de8c1df6
this._log.debug(
`restoreWindow, createTabsForSessionRestore returned ${tabs.length} tabs`
);
@@ -6148,8 +6153,23 @@ var SessionStoreInternal = {
@@ -6148,8 +6150,23 @@ var SessionStoreInternal = {
// Most of tabData has been restored, now continue with restoring
// attributes that may trigger external events.

View File

@@ -529,7 +529,7 @@ button.popup-notification-dropmarker {
}
.urlbarView-userContext {
padding-top: 0px !important;
border-top: none !important;
}
.urlbarView-row[has-action]:is([type='switchtab'], [type='remotetab'], [type='clipboard']) {

View File

@@ -798,7 +798,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
if (this._initialTab._shouldRemove && this._initialTab._veryPossiblyEmpty) {
gBrowser.removeTab(this._initialTab, {
skipSessionStore: true,
animate: false
animate: false,
});
} else {
this.moveTabToWorkspace(this._initialTab, this.activeWorkspace);
@@ -816,7 +816,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
}
gBrowser.removeTab(this._tabToRemoveForEmpty, {
skipSessionStore: true,
animate: false
animate: false,
});
}
}