flathub / com.brave.Browser

https://flathub.org/apps/details/com.brave.Browser
Mozilla Public License 2.0
43 stars 19 forks source link

Video reproduction freezes on Ozone Wayland when started in VPN split tunnelling #683

Open Digitalone1 opened 1 month ago

Digitalone1 commented 1 month ago

This is a weird issue, but I'd like to report it anyway.

I use Mullvad VPN and sometimes I start Brave Browser in split tunnelling mode (from Mullvad app). I use the Flatpak version of Brave and the --ozone-platform=wayland flag (set in brave://flags/ since I don't like the brurry UI on fractional scaling).

In the conditions abovementioned, video reproduction stops after an amount of time (40-50 seconds). Steps to reproduce:

  1. Start a VPN connection through Mullvad
  2. Open Brave Flatpak in split tunnelling mode from Mullvad UI
  3. Go here and start the video
  4. The video stops after 40-50 seconds
  5. No other video can be reproduced

This is always reproducible, unless you start Brave Flatpak normally (through the system app menu, not from Mullvad UI). I tried to reproduce this issue on the AUR version, but it's working properly there, so it's specific to the Flatpak version.

I thought this was a Mullvad issue relying on how the browser is started (I reported it here), but later I found out that if I revert the ozone-platform flag to the default (X11 and blurry UI), the issue is not reproducible even when the browser is started in the split tunnel from Mullvad UI.

So it's an issue with the Ozone Wayland platform that happens only in Flatpak version. Maybe this is reproducible also with Chromium Flatpak (but I couldn't test it). Maybe you don't care to fix it since it happens in specific conditions when started from a VPN app you don't use, but I though it was worth to report the issue anyway.

Any thoughts on why this happens? Thanks.

Digitalone1 commented 1 month ago

Maybe this is reproducible also with Chromium Flatpak (but I couldn't test it).

I tested Chromium Flatpak under the same conditions. Ozone Wayland and split tunnelling enabled, but the issue does not occur. So it seems something related to Brave.