Fullscreen video scales incorrectly on the secondary monitor

Description of the issue:
On Linux, when making a video fullscreen from a maximized window state on the secondary monitor, the content of the video is resized incorrectly. The video either doesn’t cover the entire monitor or overflows the monitor with only its bottom-left Play/Next/etc buttons left visible on Youtube, for example.

How can this issue be reproduced?

  1. Use 2 different monitors with different resolutions and scaling factors.
  2. Maximize the browser window on the secondary monitor and navigate to video content website.
  3. Play the video and go full screen from the video’s controls.

Expected result:
The video shows in full screen scaled to fit the monitor.

Brave Version( check About Brave):
Version 1.18.70 Chromium: 87.0.4280.101 (Official Build) (64-bit)

Additional Information:
Also reported with screenshots here: https://github.com/brave/brave-browser/issues/9296

Monitors have different resolutions and scaling factors (fractional), only happens on whichever monitor is set as secondary and only from the maximized window state. If the window is floating and resized to be smaller than the monitor, going fullscreen works as expected.

I think that the bug was briefly solved between April and November, but I don’t remember which version it was.

OS: elementary OS 5.1.7 Hera, Linux 5.4.0-58-generic, GTK 3.22.30
GPU: NVIDIA GTX 1080Ti, GP102, many driver versions

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.