For search-config-v3, skip engines with the deprecated flag set when building the engine list
Categories
(Firefox for Android :: Search, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: skhan, Assigned: skhan)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [search-config-v3] [group5][fxdroid])
Attachments
(1 external file)
search-config-v3 adds a deprecated flag recording that a search engine will no longer be supported. Initially, an engine with the flag set should simply not be added to the list of engines returned from the configuration - the Android counterpart of bug 2070361, using the application-services support added in bug 2070356.
This filtering belongs in SearchEngineSelectorRepository alongside the existing engine mapping, so that both the available-engines list and the default-engine selection see the same filtered set.
Two cases to cover in tests: a deprecated engine that is not the user's default (dropped silently), and a deprecated engine that IS the user's currently selected default. The second case needs a defined behaviour now even though the full treatment is a follow-up - falling back to the configuration default is the minimum, and it must not leave the user with no engine selected.
Follow-on, to be filed separately once timing is known: when the deprecated flag is first seen for an engine, copy that engine to a user-configured engine and copy the user's settings across, so the engine survives its removal from the configuration.
Depends on the Android v3 selector API bug (filed separately).
Updated•1 month ago
|
search-config-v3 marks an engine that will be removed from the configuration
soon with a deprecated flag. application-services carries the flag through to
SearchEngineDefinitionV3 without acting on it, so the client decides.
Comment 3•28 days ago
|
||
| bugherder | ||
Description
•