Skip to content
This repository has been archived by the owner on Mar 5, 2019. It is now read-only.

Commit

Permalink
[Fix] _setEffectAllowedForDataTransfer changed in Fx44+
Browse files Browse the repository at this point in the history
* The tabDragIndicator is still invisible when extensions.tabutils.disableTabMoveAnimation = true. #76
* https://bugzilla.mozilla.org/show_bug.cgi?id=1207594
  • Loading branch information
yfdyh000 committed Mar 20, 2016
1 parent 446e2e0 commit 114d23c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chrome/content/tabutils-mt.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ tabutils._multirowTabs = function() {
if (TU_getPref("extensions.tabutils.disableTabMoveAnimation", true)) {
TU_hookFunc(arguments.callee.caller.toString().match(/^.*{|var (ind|tabStrip|ltr).*|var pixelsToScroll[\s\S]*$/g).join("\n"),
[/.*scrollByPixels.*/, ";"],
[/.*effects == "move"[\s\S]*?(?=var (newIndex|scrollRect|rect))/, ""]
[/.*effects == "move"[\s\S]*?(?=var (newIndex|scrollRect|rect))/, ""] // needs fix
).apply(this, arguments);
return;
}
Expand Down
4 changes: 3 additions & 1 deletion chrome/content/tabutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,9 @@ tabutils._multiTabHandler = function() {
}
}, true);

TU_hookCode("gBrowser.mTabContainer._setEffectAllowedForDataTransfer",
TU_hookCode(typeof gBrowser.mTabContainer._setEffectAllowedForDataTransfer === 'function' ?
"gBrowser.mTabContainer._setEffectAllowedForDataTransfer" : // Firefox 43 and older
"gBrowser.mTabContainer._getDropEffectForTabDrag", // Firefox 44 and later
["dt.mozItemCount > 1", "false"]
);

Expand Down

0 comments on commit 114d23c

Please sign in to comment.