Change the way SearchService references engines from names to referencing an engine by ID
Categories
(Firefox :: Search, task, P2)
Tracking
()
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
Assignee | ||
Comment 1•2 years ago
|
||
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.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
r?Standard8
Depends on D155236
Updated•2 years ago
|
Comment 4•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/aac389dbe3cb
https://hg.mozilla.org/mozilla-central/rev/a3d2ad0b9d00
Comment 5•2 years ago
|
||
Verified as fixed during the Nightly 108 Search Regression test run. Marking as such.
Description
•