Bug 463288 - Wayland: Firefox picture-in-picture mode adds extra icon to the Task Manager
Summary: Wayland: Firefox picture-in-picture mode adds extra icon to the Task Manager
Status: RESOLVED LATER
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.26.4
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL: https://gitlab.freedesktop.org/waylan...
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2022-12-20 22:34 UTC by Mircea Kitsune
Modified: 2024-01-03 10:36 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (270.76 KB, image/png)
2022-12-20 22:34 UTC, Mircea Kitsune
Details
firefox pip (190.71 KB, image/png)
2022-12-21 15:33 UTC, Enrico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mircea Kitsune 2022-12-20 22:34:07 UTC
Created attachment 154720 [details]
Screenshot

SUMMARY
A small but annoying inconvenience: When watching Youtube videos in Firefox and using Picture in Picture mode, a new icon will be created in the task manager for the popup video. Things like floating panels or detached videos shouldn't have icons like actual dialogs and applications, which creates confusion and clutter in the taskbar.

This is a Wayland issue and doesn't occur on X11: I'm running into it since I decided to give Plasma Wayland another try with many of the core issues finally being fixed over the past months.

STEPS TO REPRODUCE
1. Open and play any Youtube video in Firefox, any video will likely trigger it.
2. Click on the icon to enable PiP mode, which should put the video into a small window.

OBSERVED RESULT

A new icon with the Firefox logo is added to the task manager for the video window.

EXPECTED RESULT

This is the sort of window that doesn't need a task manager icon. This already doesn't happen on the X11 session.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.1.0-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Comment 1 Enrico 2022-12-21 15:33:50 UTC
Created attachment 154728 [details]
firefox pip

Hello,
I can't reproduce this bug. I'm on your same configuration (Reborn OS which is Arch), but the doubled Firefox icon doesn't appear (see the screenshot).

I'm on Firefox 108.0.1. 

Operating System: RebornOS Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.0.12-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 2 Mircea Kitsune 2022-12-21 15:48:36 UTC
(In reply to Enrico from comment #1)

Thank you for checking. I see you have the little green + icon so I take it you use grouping, I disabled that in my configuration: If you right-click the task manager and go to "configure icon-only task manager" then in behavior set group to "do not group" can you see it then?
Comment 3 Enrico 2022-12-21 16:18:00 UTC
(In reply to Mircea Kitsune from comment #2)
> (In reply to Enrico from comment #1)
> 
> Thank you for checking. I see you have the little green + icon so I take it
> you use grouping, I disabled that in my configuration: If you right-click
> the task manager and go to "configure icon-only task manager" then in
> behavior set group to "do not group" can you see it then?

You are right: disabling the "grouping" feature, the PIP video creates a second Firefox icon. This doesn't happen on X11
Comment 4 Nate Graham 2023-01-05 21:20:57 UTC
This might be a Firefox bug, or a Wayland limitation that needs a new protocol or something.
Comment 5 David Edmundson 2023-01-05 22:32:15 UTC
>or a Wayland limitation that needs a new protocol or something.

This. No fix will be soon.
Comment 6 Nate Graham 2023-01-05 22:37:33 UTC
...Presumably this protocol: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/132. Looks like the discussion has stalled.
Comment 7 Nate Graham 2023-01-05 22:40:19 UTC
Added to https://community.kde.org/Plasma/Wayland_Showstoppers in the "blocked by required upstream changes" section. Will re-open once those upstream changes are merged.