Closed Bug 1786324 Opened 2 years ago Closed 2 years ago

Change the way SearchService references engines from names to referencing an engine by ID

Categories

(Firefox :: Search, task, P2)

task

Tracking

()

VERIFIED FIXED
108 Branch
Tracking Status
firefox108 --- verified

People

(Reporter: mcheang, Assigned: mcheang)

References

Details

(Whiteboard: [snt])

Attachments

(2 files)

We want to change the this._engines map within SearchService to use id as keys rather than engine names as keys.

Using Engine ids are preferred. There have been problems in the past where the engine name has been updated from the webextension and we needed to delete the engine and re-add it, see here: https://searchfox.org/mozilla-central/rev/9cd1e8cabf67ef5a47e95d70b7f40c9d3ad02ad0/toolkit/components/search/SearchService.sys.mjs#1918-1920

names. r?Standard8

An uuid is created for every new instance of a SearchEngine. The new
getEngineById method should be called to return an engine rather than
calling getEngineByName.

Attachment #9290931 - Attachment description: WIP: Bug 1786324 - Change SearchService to reference engines by Ids rather than → Bug 1786324 - Change SearchService to reference engines by Ids rather than names. r?Standard8
Severity: -- → N/A
Attachment #9298853 - Attachment description: WIP: Bug 1786324 - Add migration for engine ids to be saved on user settings. → Bug 1786324 - Add migration for engine ids to be saved on user settings.r?Standard8
Blocks: 1798662
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/aac389dbe3cb Change SearchService to reference engines by Ids rather than names. r=Standard8 https://hg.mozilla.org/integration/autoland/rev/a3d2ad0b9d00 Add migration for engine ids to be saved on user settings.r=Standard8
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch

Verified as fixed during the Nightly 108 Search Regression test run. Marking as such.

Status: RESOLVED → VERIFIED
Regressions: 1805883
Duplicate of this bug: 1511339
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: