Closed char101 closed 7 years ago
Hi,
I think findClosestNonPending should only search tabs in the visibleTabs list, and if no loaded tab is found, it should just return null. Then we can change this into
findClosestNonPending
visibleTabs
gBrowser.selectedTab = findClosestNonPending(tab.parentNode.children, tab) || gBrowser.addTab();
Because otherwise the browser will jump into a random tabgroup which is a bit confusing.
Yes, that seems much smoother.
Hi,
I think
findClosestNonPending
should only search tabs in thevisibleTabs
list, and if no loaded tab is found, it should just return null. Then we can change this intoBecause otherwise the browser will jump into a random tabgroup which is a bit confusing.