0
Files
src/components/sessions
Tomasz Moniuszko dccb3c31b4 Activate proper tab on restoring window from session
This fixes a regression introduced in
https://chromium-review.googlesource.com/c/chromium/src/+/5460410

TabRestoreServiceHelper is saving selected_tab_index in
TabRestoreServiceHelper::BrowserClosing() but the saved index wasn't
used later and TabRestoreServiceHelper was always activating the first
tab when the whole window was restored.

This CL adds a test TabRestoreTest.RestoreWindow_ActiveTabIndex that
verifies that the active tab is still active after closing and
restoring the window.

Bug: 344606398
Change-Id: I6c3262a465b8d902a4ba9a7213fdad6142a38723
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5594032
Commit-Queue: Tomasz Moniuszko <tmoniuszko@opera.com>
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Darryl James <dljames@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1311219}
2024-06-06 13:49:36 +00:00
..