-
Notifications
You must be signed in to change notification settings - Fork 973
Closing tab page makes browser unresponsive #11028
Comments
I cannot reproduce the issue on Debian. |
I fixed this but there's another problem that isn't related to this fix to be aware of when doing QA: |
can't repro with local build same sha per #11028 (comment) video, even by unflagging welcome page in dev builds. I'll try the packed build. |
consistently reproduced in package builds |
and
|
so we're having a race condition where the tab page is updated but the new active frame is not yet defined, ending up with unusable tabs. I have a quick fix |
I can still reproduce this on my Win 10 x64 machine using the STR from #11028 (comment). Once you close the tab page, the entire browser becomes unresponsive. Error displayed in the browser console:
Build being used:
Example: @cezaraugusto, could you please take a look? Is this related to #11091? |
I have a partial fix but I think it's the wrong fix: I'm not sure why this only happens on Windows but maybe simply due to timing. The fix I did above stops the browser from freezes but will leave the dead tabs that happen. I'm pretty sure what happens is we do a state update after a tab is closed (which is why it happens with loading tabs) and it re-adds the removed frame, i.e. the dead tab. The real fix should involve not having dead tabs. CC @darkdh for help, I'll be away the whole day Tuesday but will have some time to pick it back up Wednesday or Thursday if @darkdh doesn't do it first. |
I'll take this @cezaraugusto @darkdh |
This seems fixed on 0.19.30. Browser continues to work normal after closing tab page |
Fix brave#11028 Auditors: NejcZdovc
race condition was updating tabPage without an active frame leading to browser freeze Auditors: @bbondy fix brave#11028 sibling commits: - 0.20.x d738190 - 0.19.x 1301ad9
Test plan
#11311 (comment)
Description
Closing tab page makes browser unresponsive
Steps to Reproduce
Actual result:
Expected result:
Should work normally after closing tab page
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Brave Version
Additional Information
If a YT video is playing in the tab page that is closed. then it creates an empty tab which cannot be switched.
Found while verifying #9793
The text was updated successfully, but these errors were encountered: