-
Notifications
You must be signed in to change notification settings - Fork 909
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
Fixed new tab is not shown when it's first tab #27477
Conversation
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with the fix I can't reproduce this anymore: brave/brave-browser#43688
nice!
Thanks for testing! 👍🏼 |
Released in v1.77.14 |
should be uplifted as #27301 landed to beta (and release?). |
Uplifts created - thanks @simonhong @goodov |
Verification
Test Case 1: Fix verified for brave/brave-browser#43656Reproduced the scenarios 1 & 2 from brave/brave-browser#43656 (comment) in Case 1: New tab is shown after when it's first tab when rest of the tabs are pinnedVerified the issue using STR from brave/brave-browser#43656 (comment) Confirmed new tab is shown when clicked New Tab button after all other tabs are pinned2025-02-05_12h07_36.mp4Case 2: Pinned tab from window B to window A is visibleVerified the issue using STR from brave/brave-browser#43656 (comment) (Scenario 1) Confirmed that Pinned tab from Window B moved to Window A is shown2025-02-05_11h51_44.mp4Case 3: unpinned tab from window A is visible in window BVerified the issue using STR from brave/brave-browser#43656 (comment) (Scenario 2) Test Case 2: Fix verified for the issue brave/brave-browser#43688Case 1: New Tab button repositioned after last tab is closedCould not reproduce the issue using STR brave/brave-browser#43688 (comment) in 1.77.5 Verified the issue using STR from brave/brave-browser#43688 (comment) Confirmed New Tab button repositioned after last tab is closed2025-02-05_12h41_59.mp4 |
fix brave/brave-browser#43656
fix brave/brave-browser#43688
possibly fixes brave/brave-browser#43700
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.
Resolves
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
VerticalTabStripBrowserTest.LayoutAfterFirstTabCreation
See the linked issue for manual test STR.
Also see brave/brave-browser#43656 (comment)