diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 5164cab0..e85f56b8 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -699,11 +699,16 @@ try{ ).singleNodeValue) this.clearDropPosition(); - if (setEffectAllowedFunc ? + if ( + !info.canDrop || + (setEffectAllowedFunc ? (setEffectAllowedFunc(aEvent) == 'none') : !aTabBrowser.canDrop(aEvent, session) ) + ) { + aEvent.dataTransfer.effectAllowed = "none"; return true; + } info.target.setAttribute( this.kDROP_POSITION,