diff options
author | Moonchild <moonchild@palemoon.org> | 2021-01-13 02:27:31 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-01-13 02:27:31 +0000 |
commit | 4b450acc4a1536c749661e7f5786aec2ee610c30 (patch) | |
tree | f29bcc325fb8a3144892f933b2bcb09021ad707c | |
parent | 734d737a6e927a7088515bc3d9710cb067a7bd8d (diff) | |
download | basilisk-4b450acc4a1536c749661e7f5786aec2ee610c30.tar.gz |
[Tabbed browser] Pref detach&tear-off of tabs.
See MoonchildProductions/Pale-Moon#1845
-rw-r--r-- | basilisk/app/profile/basilisk.js | 4 | ||||
-rw-r--r-- | basilisk/base/content/tabbrowser.xml | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/basilisk/app/profile/basilisk.js b/basilisk/app/profile/basilisk.js index b5a6a6a..f6575d8 100644 --- a/basilisk/app/profile/basilisk.js +++ b/basilisk/app/profile/basilisk.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/basilisk/base/content/tabbrowser.xml b/basilisk/base/content/tabbrowser.xml index df83f67..a9e936d 100644 --- a/basilisk/base/content/tabbrowser.xml +++ b/basilisk/base/content/tabbrowser.xml @@ -6354,6 +6354,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; |