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:
mcheang 2024-02-07 15:27:10 +00:00
parent 2a7b560d98
commit b2045b89e3

View File

@ -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";