Closed Bug 1369012 Opened 7 years ago Closed 6 years ago

Don't show the one-off buttons if the only visible engine would be the current one

Categories

(Firefox :: Address Bar, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 59

People

(Reporter: mak, Assigned: mak)

References

Details

(Whiteboard: [fxsearch])

Attachments

(1 obsolete file)

If only the current engine is checked for the one-off buttons, it doesn't make sense to show the one-offs bar, since its usefulness would be very low.

Currently we hide the one-offs bar only if 0 engines are enabled, mostly because the search bar doesn't show a one-off for the current engine, so there it makes totally sense. Not for the Location Bar though.
Priority: P2 → P1
This is a P1 bug without an assignee. 

P1 are bugs which are being worked on for the current release cycle/iteration/sprint. 

If the bug is not assigned by Monday, 28 August, the bug's priority will be reset to '--'.
Keywords: stale-bug
Assignee: nobody → past
Status: NEW → ASSIGNED
Keywords: stale-bug
There appears to be a bug where unchecking search engines from preferences doesn't update the list of visible engines. I wonder if this is fallout from the recent one-off caching work.
(In reply to Panos Astithas [:past] (56 Regression Engineering Owner) (please ni?) from comment #3)
> There appears to be a bug where unchecking search engines from preferences
> doesn't update the list of visible engines. I wonder if this is fallout from
> the recent one-off caching work.

Do you have specific steps to reproduce? (I checked quickly and it seems to work for me)
The engines do get removed from the one-off row in the awesomebar, but running |Services.search.getVisibleEngines().length| in the browser console still shows 7.
(In reply to Panos Astithas [:past] (56 Regression Engineering Owner) (please ni?) from comment #5)
> The engines do get removed from the one-off row in the awesomebar, but
> running |Services.search.getVisibleEngines().length| in the browser console
> still shows 7.

getVisibleEngines is the list of engines visible in the preferences, not the list of engines visible as one-off (the latter is getVisibleEngines() minus the engines listed in the browser.search.hiddenOneOffs pref).

The reason why we need to have getVisibleEngines is that built-in engines are non removable, so when a user removes one from the preferences, the engine is just hidden.
Priority: P1 → P2
stealing, I have a patch for this and bug 1416041, I'm trying to add some kind of test for it.
Assignee: past → mak77
Depends on: 1416041
Attachment #8901465 - Attachment is obsolete: true
fixed by bug 1416041
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: