mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
feat: Added pref for context menu refresh, b=no-bug, c=common, tabs
This commit is contained in:
@@ -51,3 +51,6 @@
|
||||
|
||||
- name: zen.view.drag-and-drop.drop-inside-lower-threshold
|
||||
value: 30
|
||||
|
||||
- name: zen.view.context-menu.refresh
|
||||
value: false
|
||||
|
@@ -78,6 +78,9 @@ var gZenUIManager = {
|
||||
},
|
||||
|
||||
_debloatContextMenus() {
|
||||
if (!Services.prefs.getBoolPref('zen.view.context-menu.refresh', false)) {
|
||||
return;
|
||||
}
|
||||
const contextMenusToClean = [
|
||||
// Remove the 'new tab below' context menu.
|
||||
// reason: It doesn't properly work with zen and it's philosophy of not having
|
||||
|
@@ -805,6 +805,10 @@
|
||||
if (selectedTab.group?.hasAttribute('split-view-group')) {
|
||||
tabsToUnload = selectedTab.group.tabs;
|
||||
}
|
||||
const allAreUnloaded = tabsToUnload.every((tab) => tab.hasAttribute('pending'));
|
||||
if (allAreUnloaded) {
|
||||
return await this._onCloseTabShortcut(event, selectedTab, { behavior: 'close' });
|
||||
}
|
||||
await gBrowser.explicitUnloadTabs(tabsToUnload);
|
||||
selectedTab.removeAttribute('discarded');
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@
|
||||
"brandShortName": "Zen",
|
||||
"brandFullName": "Zen Browser",
|
||||
"release": {
|
||||
"displayVersion": "1.15.2b",
|
||||
"displayVersion": "1.15.3b",
|
||||
"github": {
|
||||
"repo": "zen-browser/desktop"
|
||||
},
|
||||
|
Reference in New Issue
Block a user