OS: Windows 10 / 11
Opera GX Version: [ex: LVL 6 (core: xxx.x.xxxx.xx)]
Problem Description
When a web application opens a floating overlay using the standard Document Picture-in-Picture API (window.documentPictureInPicture.requestWindow()), the PiP window opens properly, but immediately loses its always-on-top priority as soon as the user clicks into another desktop application or a borderless windowed game.
The PiP window remains open in the Windows taskbar, but moves behind the focused application instead of staying on top.
Steps to Reproduce
- Open a web app that uses
window.documentPictureInPicture.requestWindow({ width, height })to create an HTML overlay window. - Open any other desktop application or borderless windowed game.
- Click inside the other application/game.
Expected Behavior
The Document Picture-in-Picture window should remain always on top above other windows, just like it does on Chrome, Brave, and Firefox (151+) under the exact same conditions.
Actual Behavior
The Document PiP window drops behind the newly focused window as soon as you click outside of it.
Additional Notes
- Standard
<video>Video Popout works as expected, the issue specifically affects third-party overlays usingdocumentPictureInPicture. - Confirmed by multiple users on Opera GX, while the exact same web app works without issues on Chrome, Brave, and Firefox.