Bug 1482565 - Support and show @Яндекс and @百度 searches for yandex and baidu r=mkaply
authorEd Lee <edilee@mozilla.com>
Sat, 11 Aug 2018 13:26:39 +0000
changeset 480960 30ff3056bd2716761f7908e5fa38c14c7952adb8
parent 480959 ce79b99f0beb5b75adfbb70bae3a85c7142e978f
child 480961 6c25e3f86d1bb10cca5e87a895b9a4ce393bed41
push id1757
push userffxbld-merge
push dateFri, 24 Aug 2018 17:02:43 +0000
treeherdermozilla-release@736023aebdb1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkaply
bugs1482565
milestone62.0
Bug 1482565 - Support and show @Яндекс and @百度 searches for yandex and baidu r=mkaply Depends on D3133 Depends on D3033 Differential Revision: https://phabricator.services.mozilla.com/D3139
toolkit/components/search/nsSearchService.js
--- a/toolkit/components/search/nsSearchService.js
+++ b/toolkit/components/search/nsSearchService.js
@@ -1001,18 +1001,18 @@ const ENGINE_ALIASES = new Map([
   ["amazon-france", ["@amazon"]],
   ["amazon-jp", ["@amazon"]],
   ["amazon-it", ["@amazon"]],
   ["twitter", ["@twitter"]],
   ["wikipedia", ["@wikipedia"]],
   ["ebay", ["@ebay"]],
   ["bing", ["@bing"]],
   ["ddg", ["@duckduckgo", "@ddg"]],
-  ["yandex", ["@yandex"]],
-  ["baidu", ["@baidu"]],
+  ["yandex", ["@\u044F\u043D\u0434\u0435\u043A\u0441", "@yandex"]],
+  ["baidu", ["@\u767E\u5EA6", "@baidu"]],
 ]);
 
 function getInternalAliases(engine) {
   if (!engine._isDefault) {
     return [];
   }
   for (let [name, aliases] of ENGINE_ALIASES) {
     if (engine._shortName.startsWith(name)) {