Bug 1225278

Summary: Firefox's Search Provider doesn't work on GNOME (and possibly other DEs)
Product: [openSUSE] openSUSE Tumbleweed Reporter: Antonio Romano <ant.romano>
Component: FirefoxAssignee: Factory Mozilla <factory-mozilla>
Status: CONFIRMED --- QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None CC: ant.romano, martin.sirringhaus
Version: Current   
Target Milestone: ---   
Hardware: All   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Antonio Romano 2024-05-24 21:46:03 UTC
I'm using openSUSE Tumbleweed w/ snapshot 20240523, Firefox 126.0 (.rpm) and GNOME 46.1.

On Firefox, the `browser.gnome-search-provider.enabled` parameter is set to true, while "Firefox" is listed as an enabled search provider on GNOME (Settings -> Search). The "GNOME shell integration" extension is also enabled, although I'm not sure it is required. 

Despite my premises, Firefox simply does not appear as a search provider when trying to search through GNOME. 

I've tried searching for solutions or at least for people with the same issue and found out this article from a Fedora: https://mastransky.wordpress.com/2023/10/13/q3-firefox-linux-update/ although I have no idea how to correctly follow the steps he described. I can only state that the Mozilla Firefox Search Provider service indeed is _not_ "Activatable".
Comment 1 Martin Sirringhaus 2024-06-27 13:53:48 UTC
Can confirm. The logs say

gnome-shell[2546]: Received error from D-Bus search provider firefox.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.mozilla.Firefox.SearchProvider was not provided by any .service files

I think we have to update our desktop-file and install the service-file, too. See https://hg.mozilla.org/mozilla-central/rev/cec10bb1eb83

I'll experiment with it.
Comment 2 Martin Sirringhaus 2024-06-28 13:03:20 UTC
I have a potential fix in my home branch: https://build.opensuse.org/package/show/home:MSirringhaus:branches:mozilla:Factory/MozillaFirefox

It is currently still building, but once it's finished, could you try it out Antonio?
Comment 3 Antonio Romano 2024-06-28 15:46:15 UTC
(In reply to Martin Sirringhaus from comment #2)
> I have a potential fix in my home branch:
> https://build.opensuse.org/package/show/home:MSirringhaus:branches:mozilla:
> Factory/MozillaFirefox
> 
> It is currently still building, but once it's finished, could you try it out
> Antonio?

Build appears to be completed but I can't manage to add the repository. Is it published?
Comment 4 Antonio Romano 2024-06-29 11:45:32 UTC
Ok, I managed to install the Firefox x86_64 rpm from your home branch and it indeed works. Firefox does appear as a search provider in GNOME now. Thank you!
Comment 5 Martin Sirringhaus 2024-07-01 11:43:30 UTC
(In reply to Antonio Romano from comment #4)
> Ok, I managed to install the Firefox x86_64 rpm from your home branch and it
> indeed works. Firefox does appear as a search provider in GNOME now. Thank
> you!

Cool! Thanks for testing!
Comment 6 OBSbugzilla Bot 2024-07-04 08:45:07 UTC
This is an autogenerated message for OBS integration:
This bug (1225278) was mentioned in
https://build.opensuse.org/request/show/1185336 Factory / MozillaFirefox
Comment 8 Maintenance Automation 2024-07-09 16:31:58 UTC
SUSE-SU-2024:2371-1: An update that solves 13 vulnerabilities can now be installed.

Category: security (important)
Bug References: 1225278, 1226316
CVE References: CVE-2024-5688, CVE-2024-5690, CVE-2024-5691, CVE-2024-5692, CVE-2024-5693, CVE-2024-5696, CVE-2024-5700, CVE-2024-5702, CVE-2024-6600, CVE-2024-6601, CVE-2024-6602, CVE-2024-6603, CVE-2024-6604
Maintenance Incident: [SUSE:Maintenance:34598](https://smelt.suse.de/incident/34598/)
Sources used:
SUSE Linux Enterprise Software Development Kit 12 SP5 (src):
 MozillaFirefox-115.13.0-112.218.1
SUSE Linux Enterprise Server 12 SP5 (src):
 MozillaFirefox-115.13.0-112.218.1
SUSE Linux Enterprise High Performance Computing 12 SP5 (src):
 MozillaFirefox-115.13.0-112.218.1
SUSE Linux Enterprise Server for SAP Applications 12 SP5 (src):
 MozillaFirefox-115.13.0-112.218.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 9 Maintenance Automation 2024-07-11 20:30:20 UTC
SUSE-SU-2024:2399-1: An update that solves 13 vulnerabilities can now be installed.

Category: security (important)
Bug References: 1225278, 1226316
CVE References: CVE-2024-5688, CVE-2024-5690, CVE-2024-5691, CVE-2024-5692, CVE-2024-5693, CVE-2024-5696, CVE-2024-5700, CVE-2024-5702, CVE-2024-6600, CVE-2024-6601, CVE-2024-6602, CVE-2024-6603, CVE-2024-6604
Maintenance Incident: [SUSE:Maintenance:34597](https://smelt.suse.de/incident/34597/)
Sources used:
openSUSE Leap 15.5 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
openSUSE Leap 15.6 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
Desktop Applications Module 15-SP5 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
Desktop Applications Module 15-SP6 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
SUSE Linux Enterprise Desktop 15 SP4 LTSS 15-SP4 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
SUSE Linux Enterprise Server 15 SP4 LTSS 15-SP4 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src):
 MozillaFirefox-115.13.0-150200.152.143.1
SUSE Enterprise Storage 7.1 (src):
 MozillaFirefox-115.13.0-150200.152.143.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.