Skip to content

Commit a2afd37

Browse files
committed
Update the old comment
1 parent 5e580a6 commit a2afd37

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/profile-logic/tracks.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,11 @@ export function initializeSelectedThreadIndex(
771771
return visibleSelectedThreadIndexes;
772772
}
773773

774-
// Select either the GeckoMain [tab] thread, or the first thread in the thread
775-
// order.
774+
// Select either the most active GeckoMain [tab] thread, or the most active
775+
// thread sorted by the thread activity scores.
776+
// It always selects global tracks when there is a GeckoMain [tab], but when
777+
// there is no GeckoMain [tab], it might select local tracks too depending
778+
// on the activity score.
776779
function getDefaultSelectedThreadIndexes(
777780
visibleThreadIndexes: ThreadIndex[],
778781
profile: Profile,

0 commit comments

Comments
 (0)