Respect the behaviour of "Disable detach and tear off tab" (#540)

The addon provides ability to disable tearing off of dragged tab:
https://addons.mozilla.org/firefox/addon/bug489729-disable-detach-and-t/
but TST killed the feature...
This commit is contained in:
Piro / YUKI Hiroshi 2013-08-21 02:18:30 +09:00
parent a870d718da
commit c2fee561d1

View File

@ -868,6 +868,12 @@ catch(e) {
if (this.isDraggingAllCurrentTabs(draggedTab))
return;
// Respect the behaviour of "Disable detach and tear off tab"
// https://addons.mozilla.org/firefox/addon/bug489729-disable-detach-and-t/
if ('bug489729' in this.window &&
prefs.getPref('extensions.bug489729.disable_detach_tab'))
return;
if (aEvent.ctrlKey || aEvent.metaKey)
draggedTab.__treestyletab__toBeDuplicated = true;