Bug 421457 - Browser Integration won't work through Firefox Flatpak
Summary: Browser Integration won't work through Firefox Flatpak
Status: REOPENED
Alias: None
Product: plasma-browser-integration
Classification: Plasma
Component: Firefox (show other bugs)
Version: unspecified
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-13 12:00 UTC by thesola10
Modified: 2025-03-11 17:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thesola10 2020-05-13 12:00:47 UTC
SUMMARY
When Firefox is run through Flatpak, the Browser Integration extension is unable to communicate with the native host.

STEPS TO REPRODUCE
1. Install and run Firefox from Flathub's official Flatpak release
2. Start playing anything Browser Integration supports (YouTube, Nextcloud...)

OBSERVED RESULT
No MPRIS player shows up. Play/pause controls do not work, and no media playing status is reflected through KDE Connect

EXPECTED RESULT
A matching MPRIS player for the media currently playing appears, the system's play/pause controls can control it, and KDE Connect shows the media on paired devices.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux x86_64, Kernel 5.6.12-AMD
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2-2

ADDITIONAL INFORMATION

Firefox: Official Flatpak from Flathub (org.mozilla.firefox) 75.0
Comment 1 Kai Uwe Broulik 2020-05-13 14:39:46 UTC
Sandboxing doesn't permit native messaging at this time.
Comment 2 thesola10 2020-06-16 07:54:01 UTC
I managed to make the native connector work, by allowing the Firefox flatpak to access dbus name org.freedesktop.Flatpak and using flatpak-spawn, but I suspect that running the native Plasma connector within the Flatpak sandbox is susceptible to working as well (if it works through D-Bus)

My idea is that native connectors for Firefox should be Flatpak extensions (a natively supported paradigm), but that is a problem for the Firefox Flatpak maintainers over at Flathub.
Comment 3 Kai Uwe Broulik 2020-06-16 08:08:51 UTC
If you could raise that issue there that would be highly appreciated! :)
Comment 4 Guillaume 2025-03-11 17:41:18 UTC
Is there any news on this issue ? This is still an issue in 2025