brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.81k stars 2.33k forks source link

Sometimes doesn’t save the active tab correctly when quitting Brave #40551

Open A-t-s-u-s-h-i opened 2 months ago

A-t-s-u-s-h-i commented 2 months ago

Description

I found the user feedback says that Brave doesn’t save the active tab correctly when quitting Brave(So it shows the unexpected tab when relaunching). I could reproduce the same issue as below. Often reproduced, but not always. It was reproduced on all versions Stable/Beta/Nightly. I might quit Brave in real quick after changing tab for the test and it might cause the issue…

(movie) https://github.com/user-attachments/assets/5244cb20-3d0f-4488-a9ff-142283fce93b

スクリーンショット 2024-08-20 10 41 19

Steps to reproduce

  1. Launch Brave
  2. Change active tab
  3. Quit and relaunch Brave

Actual result

Sometimes the active tab would be the tab that shown on the operation no.1

Expected result

The active tab should be the tab I showed on the operation no.2

Reproduces how often

Intermittent issue

Brave version

1.68.137

Device

Channel information

Reproducibility

Miscellaneous information

No response

SergeyZhukovsky commented 2 months ago

@A-t-s-u-s-h-i confirmed that the issue is reproducible in Chrome, we just wait for upstream fix with that.

bondeabhijeet commented 2 months ago

@A-t-s-u-s-h-i To temporarily fix the issue, you can use the OneTab extension. Before exiting your browser, use this extension to save all your open tabs. Then, when you relaunch the browser, simply reopen all the tabs using the OneTab extension. This allows you to manage and restore your tabs efficiently every time you start a new session.