Description of the issue: Saved tab groups become unsaved and ungrouped if you click on the little X to close to tab accidentally in a tab inside the group but if it happens to give a “Leave Site?” warning (such as when you are in a text editor and you’ll lose your progress in that tab) and if you click “Cancel”, the whole tab gets deleted (if it’s saved) and all the tabs become ungrouped.
Steps to Reproduce (add as many as necessary):
- Create a group consisting of multiple tabs.
- Save the group.
- Click on the fartermost right tab (but it needs to be a tab where it gives a “Leave Site?” warning before you can close that tab)
- Hit Cancel.
Actual Result (gifs and screenshots are welcome!): Tabs get ungrouped and the saved group is deleted.
Expected result: Nothing should happen.
Reproduces how often: Every time.
Operating System and Brave Version: MacOS Sequoia 15.1 Beta, Brave v1.70.117