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.
MEDIA_SESSION != MEDIA_STREAM. What if you guard MediaSessionManagerGLib and RemoteCommandListenerGLib with ENABLE(MEDIA_SESSION)?
Created attachment 438559 [details] Patch
That seemed to work, see attached patch.
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].