Skip to content
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

Fix BraveCompoundTabContainer layout for vertical tab strip #16885

Merged
merged 1 commit into from
Jan 28, 2023

Conversation

sangwoo108
Copy link
Contributor

@sangwoo108 sangwoo108 commented Jan 27, 2023

In the latest Chromium, CompoundTabContainer doesn't use FlexLayout. But in our use case, FlexLayout does good so make things work based on the FlexLayout.

Related upstream changes:
https://chromium-review.googlesource.com/c/chromium/src/+/4081180
https://chromium-review.googlesource.com/c/chromium/src/+/3956548

Resolves brave/brave-browser#28084

Many thanks to @antonok-edm for reporting this!

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally:
    • npm run test -- brave_browser_tests, npm run test -- brave_unit_tests wiki
    • npm run lint, npm run presubmit wiki, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

None

Copy link
Collaborator

@antonok-edm antonok-edm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested locally, looks good

@github-actions
Copy link
Contributor

⚠️ PR head is an unsigned commit
commit: 378282cbe9484d1b0b30b78df799cd0de5938c36
reason: unsigned
Please follow the handbook to configure commit signing
cc: @sangwoo108

1 similar comment
@github-actions
Copy link
Contributor

⚠️ PR head is an unsigned commit
commit: 378282cbe9484d1b0b30b78df799cd0de5938c36
reason: unsigned
Please follow the handbook to configure commit signing
cc: @sangwoo108

Copy link
Member

@simonhong simonhong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++ with trivial nits

browser/ui/views/tabs/brave_compound_tab_container.cc Outdated Show resolved Hide resolved
browser/ui/views/tabs/brave_compound_tab_container.cc Outdated Show resolved Hide resolved
browser/ui/views/tabs/brave_compound_tab_container.cc Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

⚠️ PR head is an unsigned commit
commit: 378282cbe9484d1b0b30b78df799cd0de5938c36
reason: unsigned
Please follow the handbook to configure commit signing
cc: @sangwoo108

@github-actions
Copy link
Contributor

⚠️ PR head is an unsigned commit
commit: 378282cbe9484d1b0b30b78df799cd0de5938c36
reason: unsigned
Please follow the handbook to configure commit signing
cc: @sangwoo108

ad_block_client_->setupDiscardPolicy(*regex_discard_policy_);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea why presubmit complains about this formatting, even I didn't touch this file and the previous version looks good for me. 🤷

@github-actions
Copy link
Contributor

⚠️ PR head is an unsigned commit
commit: dcb2ff6
reason: unsigned
Please follow the handbook to configure commit signing
cc: @sangwoo108

In the latest Chromium, CompoundTabContainer doesn't use FlexLayout.
But in our use case, FlexLayout does good so make things work based
on the FlexLayout.

Related upstream changes:
https://chromium-review.googlesource.com/c/chromium/src/+/4081180
https://chromium-review.googlesource.com/c/chromium/src/+/3956548
@sangwoo108 sangwoo108 enabled auto-merge (squash) January 28, 2023 04:30
@sangwoo108 sangwoo108 merged commit 7d4fe75 into master Jan 28, 2023
@sangwoo108 sangwoo108 deleted the sko/vtab-rebase branch January 28, 2023 05:34
@github-actions github-actions bot added this to the 1.49.x - Nightly milestone Jan 28, 2023
emerick pushed a commit that referenced this pull request Jan 31, 2023
In the latest Chromium, CompoundTabContainer doesn't use FlexLayout.
But in our use case, FlexLayout does good so make things work based
on the FlexLayout.

Related upstream changes:
https://chromium-review.googlesource.com/c/chromium/src/+/4081180
https://chromium-review.googlesource.com/c/chromium/src/+/3956548
kjozwiak pushed a commit that referenced this pull request Feb 1, 2023
* Merge pull request #16324 from brave/cr110

Upgrade from Chromium 109 to Chromium 110

* [Android] Fix for crash or no action on page bookmark

* Merge pull request #16922 from brave/bsc-fix-microtask-crash

Update calls for v8 microscope; skus_js_handler had webview crash

* Fix BraveCompoundTabContainer layout for vertical tab strip (#16885)

In the latest Chromium, CompoundTabContainer doesn't use FlexLayout.
But in our use case, FlexLayout does good so make things work based
on the FlexLayout.

Related upstream changes:
https://chromium-review.googlesource.com/c/chromium/src/+/4081180
https://chromium-review.googlesource.com/c/chromium/src/+/3956548

* Merge pull request #16942 from brave/cr110-followup-remove-block-third-party-cookies-in-private

Re-hide "Block third-party cookies in Private" option in brave://settings

* Merge pull request #16944 from brave/onboarding-bug

Added chrome resource url on onboarding webui csp

* [Android] Fix for search engine logo on NTP

---------

Co-authored-by: Artem Samoilenko <artem@brave.com>
Co-authored-by: Brian Clifton <brian@clifton.me>
Co-authored-by: Sangwoo Ko <sko@brave.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vertical tabs are not laid out properly on the latest version
4 participants