mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 1878277 - Add id mapping for amazon-es and amazon-se to amazon-spain and amazon-sweden so that the prior search settings persist. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D200846
This commit is contained in:
parent
2a7b560d98
commit
b2045b89e3
@ -2335,6 +2335,14 @@ export class SearchService {
|
||||
? [e.identifier]
|
||||
: e.identifier.split("-");
|
||||
|
||||
if (e.identifier == "amazon-se") {
|
||||
identifierComponents[1] = "sweden";
|
||||
}
|
||||
|
||||
if (e.identifier == "amazon-es") {
|
||||
identifierComponents[1] = "spain";
|
||||
}
|
||||
|
||||
let locale = identifierComponents.slice(1).join("-") || "default";
|
||||
|
||||
e.webExtension.id = identifierComponents[0] + "@search.mozilla.org";
|
||||
|
Loading…
Reference in New Issue
Block a user