commit 10945aef958c54af21b95adbbf0cc6875299e801
parent 6aa243df328bf3031c994dad8eb2e8a67a653842
Author: Nikki Sharpley <nsharpley@mozilla.com>
Date: Thu, 30 Oct 2025 20:03:25 +0000
Bug 1996302 - Fix background tab animation for tab with currentIndex set to 0 on drag r=tabbrowser-reviewers,sthompson
Differential Revision: https://phabricator.services.mozilla.com/D270726
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/browser/components/tabbrowser/content/tab-stacking.js b/browser/components/tabbrowser/content/tab-stacking.js
@@ -601,7 +601,7 @@
* @returns {number}
*/
let getTabShift = (item, dropElementIndex) => {
- if (!item?.currentIndex) {
+ if (item?.currentIndex == undefined) {
item.currentIndex = item.elementIndex;
}
if (
@@ -1080,7 +1080,7 @@
let shiftNumber = this._maxTabsPerRow - 1;
let getTabShift = (tab, dropIndex) => {
- if (!tab?.currentIndex) {
+ if (tab?.currentIndex == undefined) {
tab.currentIndex = tab.elementIndex;
}
if (