zen-browser / desktop

🌀 Experience tranquillity while browsing the web without people tracking you!
https://zen-browser.app
Mozilla Public License 2.0
18.91k stars 456 forks source link

Refine auto-open Picture-in-Picture (PiP) Behavior to Exclude Background Video Elements #3145

Open phrechu opened 1 day ago

phrechu commented 1 day ago

Captchas

What happened?

Description

The current auto-open PiP implementation incorrectly triggers for video elements used as backgrounds or embedded in div sections, rather than focusing on actual video players.

Expected Behavior

Maintain auto-open PiP functionality for genuine video players (YouTube, Vimeo, etc.) Prevent PiP activation for:

Reproducible?

Version

1.0.1-a.19

What platform are you seeing the problem on?

Windows

Relevant log output

No response