sonnyp / Tangram

Browser for your pinned tabs
https://apps.gnome.org/app/re.sonny.Tangram/
GNU General Public License v3.0
882 stars 37 forks source link

Possible dbus bug: Tangram does not remove media player instances from KDE media controller #246

Closed xgqt closed 1 year ago

xgqt commented 1 year ago

image

^ pictured: 5/6 unmarked media players here are from Tangram, 3 from Mastodon (yes, one page "tab") and 2 form Discourse (still one page)

There is a very weird behavior in the interaction between Tangram and the KDE media controller. A web page can register arbitrary many entries in the media controller and Tangram will not remove then until the web page is reloaded ("F5").

On some pages like Discourse this will just create one persistent entry but on pages like Element this can create hundreds on entries for every piece of media found on a page.

I could attempt to debug this with some dbus/mpris tools but my dbus knowledge is rusty, that why this bug report is so bare, sorry.

If this is a Webkit bug a possible Tangram workaround would be to allow turning off this kind of media interaction on some pages picked by the user.


Debugging Information

WebKitGTK 2.38.3 GJS 1.74.1 Adw 1.2.1 GTK 4.8.3 GLib 2.74.4 libsoup 3.2.2 GStreamer 1.20.4

Flatpak version

N/A

Operating System

Gentoo Linux 2.13, stable KDE desktop profile

Desktop Environment

Operating System: Gentoo Linux 2.13 KDE Plasma Version: 5.26.5 KDE Frameworks Version: 5.102.0 Qt Version: 5.15.8 Kernel Version: 6.1.12-gentoo-magentalane-2023.02.21 (64-bit) Graphics Platform: Wayland Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx Memory: 33.2 GiB of RAM Graphics Processor: AMD Radeon Vega 8 Graphics

xgqt commented 1 year ago

And here is how it can look after some time, not pretty :)

image

sonnyp commented 1 year ago

https://github.com/sonnyp/Tangram/issues/207