[Pale-Moon] Issue #1845 - Pref detach&tear-off tab handling.

Resolves #1845
This commit is contained in:
Moonchild 2021-01-13 02:26:18 +00:00 committed by roytam1
commit ef13be6ef8
2 changed files with 9 additions and 0 deletions

View file

@ -477,6 +477,10 @@ pref("browser.tabs.showAudioPlayingIcon", true);
// This should match Chromium's audio indicator delay.
pref("browser.tabs.delayHidingAudioPlayingIconMS", 3000);
// 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.allTabs.previews", true);
pref("browser.allTabs.hidePinnedTabs", false);
pref("browser.ctrlTab.previews", true);

View file

@ -4831,6 +4831,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;