tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit e3feb0566a913fff9fc3491b4e08156253fb4b8a
parent 9b41e228aff33b76faafd056552e683520dbcb16
Author: Pier Angelo Vendrame <pierov@torproject.org>
Date:   Mon,  7 Oct 2024 15:00:21 +0200

BB 43196: Remove the vendor name from media notifications on Linux.

Firefox shows "vendor remoteName" as a title of the "... is playing
media" notification on Linux.
However, for our browser the remote name is enough, and prepending the
vendor to it creates a string users usually never see.

Diffstat:
Mwidget/gtk/MPRISServiceHandler.cpp | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/widget/gtk/MPRISServiceHandler.cpp b/widget/gtk/MPRISServiceHandler.cpp @@ -453,8 +453,10 @@ void MPRISServiceHandler::InitIdentity() { do_GetService("@mozilla.org/xre/app-info;1", &rv); MOZ_ASSERT(NS_SUCCEEDED(rv)); +#ifndef BASE_BROWSER_VERSION rv = appInfo->GetVendor(mIdentity); MOZ_ASSERT(NS_SUCCEEDED(rv)); +#endif if (gAppData) { mDesktopEntry = gAppData->remotingName; @@ -463,7 +465,9 @@ void MPRISServiceHandler::InitIdentity() { MOZ_ASSERT(NS_SUCCEEDED(rv)); } +#ifndef BASE_BROWSER_VERSION mIdentity.Append(' '); +#endif mIdentity.Append(mDesktopEntry); LOGMPRIS("InitIdentity() MPRIS desktop ID %s", mDesktopEntry.get());