Switch to referencing engines by id instead of display names in SearchService
Categories
(Firefox :: Search, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: daleharvey, Assigned: standard8)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
As mentioned in https://phabricator.services.mozilla.com/D42879
In SearchService we refer to engines by their displayname (eg: Google) instead of the engine id which is quite confusing and brittle at least for builtin engines, see if we can switch to using a stable id instead
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Parts of code that use the display name currently:
_searchDefault
(and associatedsearchDefault
in cache) - the default engine from the engine list_currentEngine
(current
) - the user's default engine_searchOrder
- the order of the engines from the engine list. This doesn't get saved in the cache.
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D50295
Assignee | ||
Comment 4•5 years ago
|
||
I ended up with a couple of follow-up bugs to be done at some stage later - bug 1590803 and bug 1590860. Although I was looking at ways of doing bug 1590860 in these patches (because the sort orders for getDefaultEngines are broken), I ended up deciding that was getting too complex and it only really affected restoring default for distributions.
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=08bf8389631ca2db62b81491bec51d95e8db2558
Updated•5 years ago
|
Updated•5 years ago
|
Comment 6•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ba7a039edd59
https://hg.mozilla.org/mozilla-central/rev/270ccc6de9ad
Description
•