[deskbar-applet] Choosing "show only primary search engine" doesn't work

Bug #122270 reported by Siegfried Gevatter
6
Affects Status Importance Assigned to Milestone
deskbar-applet
Won't Fix
Medium
deskbar-applet (Ubuntu)
Triaged
Low
Unassigned
firefox (Ubuntu)
Invalid
Undecided
Mozilla Bugs

Bug Description

STEPS TO REPRODUCE IN DESKBAR-APPLET

Steeps to reproduce:
 1. Add deskbar-applet to a toolbar.
 2. Right click on it and choose "Preferences".
 3. Select "Search on the web" and click "More...".
 4. Select "Show only primary search engine".
 5. Close the preferences window and click on the applet.
 6. The search box will appear, write something there and wait a second.

Result:
 It will show all search engines installed on Firefox.

Expected Result:
 It should only show the primary search engine (that one that is selected on Firefox).

PROBLEM IN FIREFOX

If you select any search engine it creates (or updates) a entry like «user_pref("browser.search.selectedEngine", "Answers.com");» the prefs.js, but if you select the first search engine in the list (Google) then it doesn't create that entry.

Revision history for this message
Siegfried Gevatter (rainct) wrote :

(I'm confirming this since it was another user who appointed me about this issue.)

Changed in deskbar-applet:
status: New → Confirmed
Revision history for this message
Siegfried Gevatter (rainct) wrote :

(Thanks, zegnus, for reporting me this bug and searching for what's actually producing the problem!)

description: updated
Revision history for this message
zegnus (zegnus) wrote :

Hi!

I have solved the problem changing the parameter:

PRIMARY_SEARCH_ENGINE = None

for this:

PRIMARY_SEARCH_ENGINE = "Google"

in my file:

/usr/lib/deskbar-applet/handlers/mozilla.py

I add that the problem is not linked with the FIRST search engine of the firefox list, because if I move Google to the third position (for example), and I select Google, the property:

user_pref("browser.search.selectedEngine", "Google");

DON'T appear in prefs.js file and for this, I think that the problem is directly related with Google.

Revision history for this message
John Vivirito (gnomefreak) wrote :

need testers

Changed in firefox:
assignee: nobody → mozilla-bugs
status: New → Incomplete
Revision history for this message
zegnus (zegnus) wrote :

I can be a tester

Revision history for this message
Siegfried Gevatter (rainct) wrote :

He means someone other to confirm that what you said :P

Revision history for this message
zegnus (zegnus) wrote :

jajajaja okok sorry :D

Revision history for this message
dob (obriendavid1) wrote :

This worked for me. This bug was annoying me a lot! I edited the file you suggested - removed deskbar from the panel and added it again. Only google comes up (who would need anythings else ;) ). Thanks for Fix

Revision history for this message
Siegfried Gevatter (rainct) wrote :

(I guess the bug can be confirmed again on Firefox now that Billy tested it.)

Changed in firefox:
status: Incomplete → Confirmed
Revision history for this message
Alexander Sack (asac) wrote :

well i don't know how deskbar-applet reads the default search engine out of mozilla prefs ... but if it does not find a setting for .selectedEngine, it should use browser.search.defaultenginename instead.

Anyway, I don't see that this is a firefox issue. Setting firefox task to Invalid; deskbar-applet should deal with this imo.

 - Alexander

Changed in firefox:
status: Confirmed → Invalid
Revision history for this message
zegnus (zegnus) wrote :

Hi Alexander,

Have you confirmed that when Google is the default browser, in prefs.js file browser.search.defaultenginename property exists ?

In my firefox 2.0.0.6, when google is the default browser, this line doesn't exists and that's the problem.

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 122270] Re: [deskbar-applet] Choosing "show only primary search engine" doesn't work

On Fri, Aug 03, 2007 at 08:26:47PM -0000, zegnus wrote:
> Hi Alexander,
>
> Have you confirmed that when Google is the default browser, in prefs.js
> file browser.search.defaultenginename property exists ?
>
> In my firefox 2.0.0.6, when google is the default browser, this line
> doesn't exists and that's the problem.
>

No its not set in profile prefs.js because you don't have overwritten
the firefox system setting ... which might be set somewhere in
/usr/lib/firefox/defaults/pref

applications that want to read firefox preferences have to ensure that
they read global settings as well ...

 - Alexander

Revision history for this message
Sebastien Bacher (seb128) wrote :

http://bugzilla.gnome.org/show_bug.cgi?id=468325 upstream looks like the same issue

Changed in deskbar-applet:
importance: Undecided → Low
status: Confirmed → Triaged
Changed in deskbar-applet:
status: Unknown → New
Changed in deskbar-applet:
status: New → Confirmed
Changed in deskbar-applet:
importance: Unknown → Medium
Changed in deskbar-applet:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.