From 54bec51574b9993079592a64231c23ce7ccc3348 Mon Sep 17 00:00:00 2001 From: Fedor Date: Sun, 17 Jan 2021 16:11:24 +0200 Subject: [PATCH] [Centaury] Pref detach&tear-off of tabs. --- application/basilisk/app/profile/centaury.js | 4 ++++ application/basilisk/base/content/tabbrowser.xml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/application/basilisk/app/profile/centaury.js b/application/basilisk/app/profile/centaury.js index 5cc56b5a2..00fa42752 100644 --- a/application/basilisk/app/profile/centaury.js +++ b/application/basilisk/app/profile/centaury.js @@ -413,6 +413,10 @@ pref("browser.tabs.delayHidingAudioPlayingIconMS", 3000); pref("browser.tabs.dontfocusfordialogs", true); +// Whether dragging a tab off the tab bar to tear it off into its own +// window is enabled. +pref("browser.tabs.allowTabDetach", true); + pref("browser.ctrlTab.previews", false); // By default, do not export HTML at shutdown. diff --git a/application/basilisk/base/content/tabbrowser.xml b/application/basilisk/base/content/tabbrowser.xml index 2cf92f4e6..cadda5307 100644 --- a/application/basilisk/base/content/tabbrowser.xml +++ b/application/basilisk/base/content/tabbrowser.xml @@ -6357,6 +6357,11 @@ return; } + // Check if tab detaching is enabled + if (!Services.prefs.getBoolPref("browser.tabs.allowTabDetach")) { + return; + } + // Disable detach within the browser toolbox var eX = event.screenX; var eY = event.screenY;