File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ export const configs = new Configs({
355355 successorTabControlLevel : Constants . kSUCCESSOR_TAB_CONTROL_IN_TREE ,
356356 simulateSelectOwnerOnClose : true ,
357357 simulateLockTabSizing : true ,
358- lockScrollPositionToSelectOwnerOnClose : true ,
358+ deferScrollingToOutOfViewportSuccessor : true ,
359359 simulateTabsLoadInBackgroundInverted : false ,
360360 supportTabsMultiselect : typeof browser . menus . overrideContext == 'function' ,
361361 warnOnCloseTabs : true ,
Original file line number Diff line number Diff line change @@ -1398,7 +1398,7 @@ CollapseExpand.onUpdated.addListener((tab, options) => {
13981398// https://searchfox.org/mozilla-central/rev/27932d4e6ebd2f4b8519865dad864c72176e4e3b/browser/base/content/tabbrowser-tabs.js#1207
13991399export async function tryLockPosition ( tabIds , reason ) {
14001400 if ( ( ! configs . simulateLockTabSizing &&
1401- ! configs . lockScrollPositionToSelectOwnerOnClose ) ||
1401+ ! configs . deferScrollingToOutOfViewportSuccessor ) ||
14021402 tabIds . every ( id => {
14031403 const tab = Tab . get ( id ) ;
14041404 return ! tab || tab . pinned || tab . hidden ;
@@ -1407,7 +1407,7 @@ export async function tryLockPosition(tabIds, reason) {
14071407 return ;
14081408 }
14091409
1410- if ( configs . lockScrollPositionToSelectOwnerOnClose )
1410+ if ( configs . deferScrollingToOutOfViewportSuccessor )
14111411 await tryLockScrollToSuccessor ( tabIds , reason ) ;
14121412
14131413 if ( configs . simulateLockTabSizing )
@@ -1506,7 +1506,7 @@ function unlockScrollToSuccessor(canContinueToScroll) {
15061506
15071507export function tryUnlockPosition ( tabIds ) {
15081508 if ( ( ! configs . simulateLockTabSizing &&
1509- ! configs . lockScrollPositionToSelectOwnerOnClose ) ||
1509+ ! configs . deferScrollingToOutOfViewportSuccessor ) ||
15101510 tabIds . every ( id => {
15111511 const tab = Tab . get ( id ) ;
15121512 return ! tab || tab . pinned || tab . hidden ;
You can’t perform that action at this time.
0 commit comments