Bug 278721

Summary: [GTK] Too many useless MPRIS notifications
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bugs-noreply, mcatanzaro, nekohayo, pgriffis, philn
Priority: P2    
Version: Other   
Hardware: PC   
OS: Linux   
See Also: https://bugs.webkit.org/show_bug.cgi?id=247527
https://bugs.webkit.org/show_bug.cgi?id=282000
Attachments:
Description Flags
Screenshot of notifications none

Michael Catanzaro
Reported 2024-08-27 05:44:21 PDT
Created attachment 472317 [details] Screenshot of notifications Visit https://www.cnn.com/2024/08/25/us/security-robots-human-guards/index.html and wait about 5 seconds. Notice the page creates an MPRIS notification in the gnome-shell notification area. It's not very useful because it says "Unknown title" and "Unknown artist" so the user has no indication as to what it's for. Now open the same page again in a different tab. This time, I had to wait longer than 5 seconds, but eventually a second MPRIS notification appeared. During normal daily browsing, with a bunch of news websites and reddit open in a bunch of different tabs, it creates a spam of many simultaneous "Unknown title" MPRIS notifications. Each one is useless since there's no way to know what media element the notification corresponds to. The page doesn't even contain any obvious video elements. If I click Play on the notification, nothing seems to happen. I'm not sure what should be changed here. Maybe only create one MPRIS notification per browser instance rather than one per tab, to avoid the spam? Maybe don't create a notification if the video has never been played?
Attachments
Screenshot of notifications (22.12 KB, image/png)
2024-08-27 05:44 PDT, Michael Catanzaro
no flags
Patrick Griffis
Comment 1 2024-08-27 07:51:18 PDT
> I'm not sure what should be changed here. Maybe only create one MPRIS notification per browser instance rather than one per tab, to avoid the spam? Maybe don't create a notification if the video has never been played? It looks like Chromium only shows one for the last one changing state to play. This is a bit weird for WebKit though as each WebProcess exposes itself to MPRIS, not the UI process.
Note You need to log in before you can comment on or make changes to this bug.