-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New tab not opened if a New Tab button
is clicked at the first instance when only pinned tabs are available in vertical tab view
#43656
Comments
New Tab button
is clicked beneath all pinned tabs in vertical tab view in the initial instanceNew Tab button
is clicked at the first instance when only pinned tabs are available in vertical tab view
checking. |
Found more bug scenarios from same reason. STR 1.
STR2.
|
Our VerticalTabStripRegionView tries to re-layout both tab containers(pin & unpin) when it gets child's preferred size changed noti.
Because of that our vertical tab strip doesn't re-layout when first tab is added to any tab containers. To fix it, trying to give noti in that situation like below. but it gets another startup crashing.
|
fix brave/brave-browser#43656 So far, we only do re-layout vertical tab strip when it gets child's preferred size changed noti. However, upstream doesn't give it for first tab. See TabContainerImpl::AddTab() for more detail. We optimized like that to avoid redundant re-layout but we need to relayout whenever child view's layout is invalidated. That constraints was added to fix brave/brave-browser#28967 but confirmed that it doesn't happen anymore w/o this constraints.
The above requires |
Verification PASSED on
Cases_PASSEDSTR 1.
Confirmed that Pinned tab from Window B moved to Window A is shown on Windows A STR2.
Confirmed that unpinned tab from window A is visible in window B |
Description
Found while testing #43375. Created all pinned tabs in a vertical tab view. Pressed
New Tab
button (and other ways Pressed+
,Ctrl + T
) to open a new tab but the new tab is not shown in the vertical tab view although page refreshed/animated. However new tabs opened subsequently after pressingNew Tab
button. Works as expected if there is at least one unpinned tabSteps to reproduce
New Tab
buttonActual result
Nothing happens. No new tab opened.
2025-01-31_09h53_57.mp4
Expected result
Tabs should be opened at the first instance when there are only pinned tabs.
2025-01-31_10h11_02.mp4
Reproduces how often
Easily reproduced
Brave version (brave://version info)
Channel information
Reproducibility
Miscellaneous information
@rebron @simonhong
CC: @brave/qa-team
The text was updated successfully, but these errors were encountered: