Handle normandy installed search addons in SearchService startup
Categories
(Firefox :: Search, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: daleharvey, Assigned: daleharvey)
References
Details
Attachments
(1 file, 1 obsolete file)
As the last part to https://bugzilla.mozilla.org/show_bug.cgi?id=1625179
SearchService assumes all addons referenced by the configurations are going to be builtIn and installed via |AddonManager.installBuiltinAddon(path)|, if an updated addon is being delivered via normandy then that is not going to work
For active addons that report to the SearchService on startup we should probably be able to do a lookup from the engines the AddonManager has reported to us. However if an addon has not yet been installed but has been updated I am not sure how that will work
Assignee | ||
Comment 1•5 years ago
|
||
Hey Shane, I am not 100% certain we havent already covered this and I have forgotten, if so sorry, but just in case there is work we need to do here
I am thinking about the case:
- Boot firefox in USA, SearchService installs google, amazon, twitter
- We update the the codes for Yandex, deliver an updated extension via Normandy
- We go to Russia, Firefox has figured out we have moved region, loads new engines including Yandex
How does SearchService ensure Yandex is installed?
Cheers
Assignee | ||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
(In reply to Dale Harvey (:daleharvey) from comment #1)
I am thinking about the case:
- Boot firefox in USA, SearchService installs google, amazon, twitter
- We update the the codes for Yandex, deliver an updated extension via Normandy
- We go to Russia, Firefox has figured out we have moved region, loads new engines including Yandex
How does SearchService ensure Yandex is installed?
My expectations are that the updated extension would only be delivered to the relevant regions. If Firefox switches regions to Russia, it will load Yandex and other engines via the search engine config, so will probably get the built-in versions. Once Remote Settings kicks in, then we'll get the updated Yandex delivered to us, at which point add-on manager will notify the search service to update.
Assignee | ||
Comment 3•5 years ago
|
||
That is possible, but it will always be possible (and very likely until we consolidate region fetching) that normandy delivers the update before the SearchService sees the new region so it would be good to know what happens when we AddonManager.installBuiltInAddon an addon that has a normandy delivered update.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
•
|
||
So discussed this with Shane last night, as it stands normandy installed addons will be treated by the SearchService as user installed engines. We need to add checks for isSystem to the current places that we currently check for isBuiltIn, with that normandy addons should just work as we expect, although we "may" want to do some refactoring of the startup path @ https://searchfox.org/mozilla-central/source/toolkit/components/search/SearchService.jsm#2559 at the same time
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 10•4 years ago
|
||
bugherder |
Description
•