Closed Bug 2075349 Opened 2 months ago Closed 28 days ago

For search-config-v3, skip engines with the deprecated flag set when building the engine list

Categories

(Firefox for Android :: Search, task, P2)

All
Android
task

Tracking

()

RESOLVED FIXED
161 Branch
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).

No longer blocks: 1818323, search-config-v3
Whiteboard: [search-config-v3] [group5]
Blocks: 2075351
Assignee: nobody → skhan
Whiteboard: [search-config-v3] [group5] → [search-config-v3] [group5][fxdroid]
Blocks: 2087201

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.

Pushed by skhan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7820515f3d41 https://hg.mozilla.org/integration/autoland/rev/7e1aa395720a Leave engines the configuration has deprecated out of the engine list. r=android-reviewers,npoon
Status: NEW → RESOLVED
Closed: 28 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: