Engine selector should return a single locale for each engine
Categories
(Firefox :: Search, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
Details
Attachments
(2 files)
Currently the Search Engine Selector looks like it is returning multiple locales per engine. I think generally it isn't, and it is confusing that it can, because effectively they're two different engines.
I think we should change it so that the selector only returns one locale per engine, and this would simplify the understanding of the code.
Assignee | ||
Comment 1•5 years ago
|
||
Note: toolkit/components/search/tests/xpcshell/test_webextensions_install.js
already covers the multi-locale functionality, this is just simplifying how the backend handles it.
Assignee | ||
Comment 2•5 years ago
|
||
The configuration may specify multiple locales for a search engine. The search engine selector already splits these out into different engine objects, but keeps the locale field as an array. This patch changes the 'locales' array into a 'locale' string and applies appropriate simplifications to the search service.
Assignee | ||
Comment 4•5 years ago
|
||
Comment 5•5 years ago
|
||
bugherder |
Comment 7•5 years ago
|
||
bugherder |
Description
•