filips123 / PWAsForFirefox

A tool to install, manage and use Progressive Web Apps (PWAs) in Mozilla Firefox
https://pwasforfirefox.filips.si
Mozilla Public License 2.0
2.06k stars 49 forks source link

PWAs show as "Mozilla Firefox" in GNOME Media Player #493

Open LSeelig opened 2 months ago

LSeelig commented 2 months ago

Description

The new update to GNOME 46 (Fedora 40 Workstation) changed the notification and media player format. While notifications from PWAs show the PWA's name and monochrome icon, the media player shows active audio/video from PWAs as Mozilla Firefox, with Firefox's monochrome icon. My example will use the Nebula streaming service, but the same thing happens on YouTube.

Steps to Reproduce

  1. Open Nebula PWA
  2. Start playing a video
  3. Click on center of top bar (notification panel in GNOME)
  4. See error - the video is shown, but the application is Mozilla Firefox

Additional Information

In the screenshots, the media controls are for the Nebula PWA, and the notification is for the Google Messages PWA.

I don't know if the bug is app-specific, as I have done some customization to the PWA profiles on my system. I would have to find a way to send a test notification from the Nebula or YouTube app or play back media from an app that I can verify sends notifications. I also don't think the monochrome icon is related, as they are automatically generated by GNOME unless I provide a custom replacement.

Though I am not a developer, I will try to describe what I do know. Firefox PWAs show in my system monitor (Task Manager) as 'firefox-bin' but the system does recognize each Firefox PWA as its own app, with the proper title and icon, and windows are correctly identified with their PWA in looking glass.

Maybe the initiation of media playback is not labeled as the PWA, while the notifications are?

Screenshot from 2024-04-26 21-11-47-obfuscated

Affected Websites

Environment

filips123 commented 2 months ago

This is probably the same issue as #445. Did it work before the update to GNOME 46?

LSeelig commented 2 months ago

This is probably the same issue as #445. Did it work before the update to GNOME 46?

I can't say for certain. GNOME 46 changed the notification layout. If it did occur, I never noticed. But I don't know if the bug didn't occur or if the app name/icon didn't show at all.

filips123 commented 2 months ago

I still have Fedora 39 in a VM, so I've tested this. And yeah, previous GNOME versions don't show the app name for playing media. But the bug still occurs, as clicking the media "notification" opens normal Firefox instead of PWA.

screenshot