Picture on picture subtitles don't update unless firefox is visible
Categories
(Toolkit :: Picture-in-Picture, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox111 | --- | verified |
People
(Reporter: luis.pabon, Assigned: kpatenio)
References
Details
(Whiteboard: [fidefe-MR1-2022])
Attachments
(3 files)
Steps to reproduce:
In sway 1.7 (wayland), Ubuntu 22.04 and FF nightly 102.0a1 (2022-05-18)
- Open firefox nightly
- Go to youtube, open a vid like this one https://www.youtube.com/watch?v=TWP0YpfvGvM and enable closed captions
- Activate PIP
- Open some other app side by side on same workspace and give it focus
- Subtitles still work
- Switch to tabbed mode and ensure the main firefox window is not visible
- Subtitles don't update anymore
- Switch to the tab with firefox, making it visible
- Subtitles now catch up
I've uploaded a screengrab showing just this scenario.
Actual results:
Subtitles on PIP window stop updating if the main FF window is not visible
Expected results:
Subtitles continue to update
Reporter | ||
Comment 1•10 months ago
|
||
The issue is also present on FF beta (101).
I am unable to turn off the wayland backend in Firefox and make it run in Xwayland though to check it's a wayland thing or what. Unsetting MOZ_ENABLE_WAYLAND then launching firefox doesn't seem to have an effect and it still loads in wayland mode.
Reporter | ||
Updated•10 months ago
|
Reporter | ||
Comment 2•10 months ago
|
||
For some reason the first vid I uploaded just won't play on firefox with a mp4 mime type. Atttaching the same thing as m4v
Comment 3•10 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Toolkit::Picture-in-Picture' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 4•10 months ago
|
||
Hmm. This looks like it ought to be the same thing as bug 1755748, but that one only fixed the tab being blurred, not the whole app. Mike, do you know if there's something similar we could do at the app level that might address this, or is it not going to be that easy?
Comment 5•10 months ago
|
||
Hm... this might be related to window occlusion handling in AsyncTabSwitcher. The platform fires "window occlusion" changes. We handling occlusion state changes here: https://searchfox.org/mozilla-central/rev/1c391443f770eddc7cde9e52dba5ef50cc233c06/browser/modules/AsyncTabSwitcher.jsm#855-857
and we do seem to try to handle the PiP case in shouldDeactivateDocShell
here: https://searchfox.org/mozilla-central/rev/1c391443f770eddc7cde9e52dba5ef50cc233c06/browser/modules/AsyncTabSwitcher.jsm#926
If this is easily reproducible (and I expect it is), it'd be worth checking to see if that's working properly. If it is, we might have an issue deeper in the platform.
Reporter | ||
Comment 6•10 months ago
|
||
I can reproduce it every time on my system.
Updated•7 months ago
|
Updated•2 months ago
|
Comment 11•2 months ago
|
||
Based on my experience on bug 1810380, it seems like if the issue also doesn't happen if the tab is not selected (i.e. if the tab with the video is not the selected tab, it behaves correctly). So switching to a different tab is a workaround. I'm not sure if that's consistent with the patch or not.
Comment 12•2 months ago
|
||
Pushed by kpatenio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1da22d92c592 set PiP originating window as active when window is occluded r=mconley,pip-reviewers
Comment 13•2 months ago
|
||
bugherder |
Comment 14•2 months ago
|
||
This fix has been tested on Windows 7, 10, 11, Ubuntu 22 and Mac OS 11 and 12 with Nightly v111.0a1 from 2022-02-02.
We've tested the following scenarios:
- Open a new profile.
- Load 2 youtube videos with subs:
2.a generic/loaded subs
2.b auto-generated subs - Launch PiP and activate subs
- minimize the window and check that subs are not delayed in PiP
- put another window over the Fx window and check that subs are not delayed in PiP
- send the PiP/ main window to another desktop and check that subs are not delayed in PiP
- focus another tab on the Fx browser and check that subs are not delayed in PiP
All scenarios and operating systems suggest that the issue was fixed except for one situation: on Mac OS (both 11 and 12) the subtitles are still displayed with a delay if the main window is minimized (and only in this situation of the ones tested).
This being said, this report is partially fixed. Considering that the fix appears to be complete on the other operating systems, I suggest we close this report, reopen duplicate bug 1786258 and attempt to fix the remaining issue there. If you think this is an acceptable procedure, let me know to make the necessary changes. Thank you!
Assignee | ||
Comment 15•2 months ago
|
||
Thanks :danibodea - I agree, let's use Bug 1786258 for MacOS.
Comment 16•2 months ago
|
||
I will verify this report based on comments 14 and comment 15 and reopen bug 1786258.
Description
•