summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2021-01-13 11:19:49 -0500
committerGaming4JC <g4jc@hyperbola.info>2021-01-13 11:19:49 -0500
commit2a7f601a0de1ddc6845752f3312b585de5366685 (patch)
treed5026ee0512cdda6e433f280a118b8a638bf7693 /base
parente5c130ae46d7e8a281412d22d1d3aecb0983fcac (diff)
downloadiceweasel-uxp-2a7f601a0de1ddc6845752f3312b585de5366685.tar.gz
Backport Basilisk [Tabbed browser] Pref detach&tear-off of tabs.
Diffstat (limited to 'base')
-rw-r--r--base/content/tabbrowser.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/content/tabbrowser.xml b/base/content/tabbrowser.xml
index 72db9c9..3b17718 100644
--- a/base/content/tabbrowser.xml
+++ b/base/content/tabbrowser.xml
@@ -6366,6 +6366,12 @@
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;