[Centaury] Pref detach&tear-off of tabs.

master
Fedor 2021-01-17 16:11:24 +02:00 committed by Fedor
parent eb9e99c833
commit 54bec51574
2 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -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;