RESOLVED FIXED 230420
[GTK] WebKit tries to own org.mpris.MediaPlayer2 bus names even when MEDIA_SESSION disabled
https://bugs.webkit.org/show_bug.cgi?id=230420
Summary [GTK] WebKit tries to own org.mpris.MediaPlayer2 bus names even when MEDIA_SE...
Patrick Griffis
Reported 2021-09-17 11:54:32 PDT
If you build webkitgtk without `ENABLE_MEDIA_SESSION` defined you will get warnings: > ** (WebKitWebProcess:2): WARNING **: 13:27:52.167: Unable to acquire MPRIS D-Bus session ownership for name org.mpris.MediaPlayer2.org.webkitgtk.MiniBrowser This is because in `BubblewrapLauncher.cpp` the dbus permission is guarded behind `ENABLE(MEDIA_SESSION)`. At a glance I wasn't sure the best place to disable the MPRIS ownership with another guard, most of the PlatformMediaSessionManager code seems to be guarded by `ENABLE(MEDIA_STREAM)` instead.
Attachments
Patch (4.86 KB, patch)
2021-09-18 08:07 PDT, Patrick Griffis
no flags
Philippe Normand
Comment 1 2021-09-17 14:17:43 PDT
MEDIA_SESSION != MEDIA_STREAM. What if you guard MediaSessionManagerGLib and RemoteCommandListenerGLib with ENABLE(MEDIA_SESSION)?
Patrick Griffis
Comment 2 2021-09-18 08:07:19 PDT
Patrick Griffis
Comment 3 2021-09-18 08:07:51 PDT
That seemed to work, see attached patch.
EWS
Comment 4 2021-09-18 09:12:54 PDT
Committed r282727 (241864@main): <https://commits.webkit.org/241864@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438559 [details].
Note You need to log in before you can comment on or make changes to this bug.