Bug 423933 - Icons-only Task Manager shows wrong thumbnails in firefox browser when a video is played on one of its tabs
Summary: Icons-only Task Manager shows wrong thumbnails in firefox browser when a vide...
Status: RESOLVED DUPLICATE of bug 409980
Alias: None
Product: plasmashell
Classification: Plasma
Component: Icons-only Task Manager (show other bugs)
Version: 5.18.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-06 16:03 UTC by sk.griffinix
Modified: 2020-07-12 04:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sk.griffinix 2020-07-06 16:03:45 UTC
SUMMARY
Icons-only Task Manager shows wrong thumbnails in firefox browser when a video is played on one of its tabs


STEPS TO REPRODUCE
1. Open a video (such as https://www.youtube.com/watch?v=PtxtnIsqOEQ)
2. Play the video. Then pause it
3. Minimise the browser window. Hover over icon. It shows video thumbnail with media controls,  which is correct behaviour
4. Restore the window. Open a new tab (say www.google.com).
5. Hover over the icon with google in active tab. It still shows video thumbnail with media controls. Minimise the window. On hovering over icon again, the video thumbnail still persists
6. Now open a private window
7. Hover over the icon. Both previews show video thumbnail with media controls and cannot be used to differentiate the 2 windows

OBSERVED RESULT
Video thumbnail persists in preview for every tab and window in the browser

EXPECTED RESULT
The window previews on hovering over icon should show the contents of the active tab of the respective windows

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Closing the tab with video immediately restores correct previews for all windows.

"Keep windows thumbnail" was set to "always" in compositor settings

Plasma integration browser addon was enabled
Comment 1 Nate Graham 2020-07-07 21:11:48 UTC
Yes, the thumbnail displays media controls for the media player in the browser, no matter which tab is focused. That's because said media player is still being targeted by the controls; it's perfectly possible for you to play and pause the media while the tab is not visible or the window is minimized. A lot of people use this feature when listening to music on YouTube, for example. If we implemented your suggestion, this would break.
Comment 2 sk.griffinix 2020-07-07 21:14:40 UTC
(In reply to Nate Graham from comment #1)
> Yes, the thumbnail displays media controls for the media player in the
> browser, no matter which tab is focused. That's because said media player is
> still being targeted by the controls; it's perfectly possible for you to
> play and pause the media while the tab is not visible or the window is
> minimized. A lot of people use this feature when listening to music on
> YouTube, for example. If we implemented your suggestion, this would break.

It makes sense maybe to show those controls in the window with the player (even when the tab is not active), but why is it intentional to show the same thumbnail and controls in all windows, even when a window does not have that media?
Comment 3 Nate Graham 2020-07-07 22:21:12 UTC
Ah yes, that part is a bug. I think we already have a bug report tracking that. Let me try to dig it up.
Comment 4 Nate Graham 2020-07-12 04:17:52 UTC

*** This bug has been marked as a duplicate of bug 409980 ***