summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/profile/iceweasel-uxp.js4
-rw-r--r--base/content/tabbrowser.xml6
2 files changed, 10 insertions, 0 deletions
diff --git a/app/profile/iceweasel-uxp.js b/app/profile/iceweasel-uxp.js
index 23b4aaa..b0fbcef 100644
--- a/app/profile/iceweasel-uxp.js
+++ b/app/profile/iceweasel-uxp.js
@@ -406,6 +406,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/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;