[Mypal] Pref detach&tear-off tab handling.
parent
090b06c393
commit
6753f20179
|
@ -458,6 +458,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);
|
||||
|
|
|
@ -4837,6 +4837,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;
|
||||
|
|
Loading…
Reference in New Issue