-
Notifications
You must be signed in to change notification settings - Fork 972
Hotkey CTRL + W on last tab of many closes the entire browser #9364
Comments
@hoffination do you have more information about this? I've tried to reproduce and haven't had any luck. I did notice if you hold Ctrl + W down for a few seconds, it will quickly close the tabs and once none are left, it closes the browser |
@bsclifton I reproduced it this morning on the last tab when I navigate to an nginx hosted website on localhost:80. I also was able to reproduce it on the produced about:error page when the server was shutdown. When closing that tab and trying to make another tab to reproduce it I am unable to. Anyway for me to grab a stacktrace from a log file or something if it happens again? |
I was able to reproduce it.
On startup again, the tab was never closed, just the window. So, close tab was replaced with close window. |
I have this issue as well, and it also happens if I close the last tab when clicking the X. One thing I did note is that the tab before it needs to NOT be loaded to reproduce the bug. If you switch between the last few tabs to ensure they are all loaded and then close the last tab it works fine. |
Can confirm that the bug can be reproduced Seems like it's not checking the unloaded tabs and closes because it 'thinks' that there are no more tabs. |
It looks like it could be related to whether or not the other tabs are loaded. I.e. it only checks loaded tabs upon tab closing. |
Relevant code is at
Inactive pinned/non-pinned tabs have I've been looking for a way to count the number of all tabs that belong to a window but couldn't find any existing code that does this. I'm not sure how to add this functionality (preferably via a minimal change). @bsclifton I'd appreciate some pointers. Thank you. |
Also having this issue on macOS with closing the last tab. Has happened both with ctrl + w, and just clicking the close button. However I'm fairly certain my windows had already loaded. When reopening after this bug, all previously opened tabs are lost even if you have the option ticked to open tabs from last time. |
@GreenRecycleBin sorry for not responding sooner- you nailed it 😄 The windowId needed to be set in the tabState in order for that method to return the proper number of results I'm going to close this issue as a duplicate of #9506 which was closed by e261b9e and brave/muon@4189da5... but if anyone is still encountering it after our next release, please comment and/or reopen this issue 😄 |
Did you search for similar issues before submitting this one? Yes
Describe the issue you encountered:
When I have multiple tabs open and press CTRL + W on the last tab the entire browser closes
Platform (Win7, 8, 10? macOS? Linux distro?): Win 10
Brave Version (revision SHA): 0.16.6
Steps to reproduce:
Actual result: Closes the Browser when hotkey closing the last tab
Expected result: Closes the Browser when hotkey closing the last tab
Will the steps above reproduce in a fresh profile? If not what other info can be added?
Not Sure
Is this an issue in the currently released version?
Yes
Can this issue be consistently reproduced?
No
The text was updated successfully, but these errors were encountered: