The browser tabs and toolbars ignore UI scaling parameters (Linux/Wayland)

Description of the issue:
Brave’s toolbars ignore UI scaling hints on Linux under Wayland (as opposed to legacy X11/XWayland). What works to get UI scaling in other Chromium browsers doesn’t work for Brave.

How can this issue be reproduced?

  1. Use Fedora 35 (or really any other Linux desktop with GNOME 40 on Wayland.)
  2. Either enable mutter experimental fractional scaling and set it to 150%; OR increase the GTK text side (again, doesn’t matter which one).
  3. Install Brave; doesn’t make any difference if you use Flathub or RPM/DEB from the website.
  4. Force Brave to use Wayland by starting it with the --ozone-platform-hint=auto argument.

Expected result:
The toolbars should respect the font or UI scaling of the desktop.

Actual result:
The webview scales as expected, but Brave’s chrome and toolbars don’t. This results in unusably small text on tabs and the address field and tiny buttons that are hard to click.

screenshot
Screenshot

Brave Version( check About Brave):
1.34.80 Chromium: 97.0.4692.71 (Official Build) unknown (64-bit)
Revision adefa7837d02a07a604c1e6eff0b3a09422ab88d-refs/branch-heads/4692@{#1247}