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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ed Lee 2018-08-11 13:26:39 +00:00
parent 260e13f78d
commit a23ae6debf
2 changed files with 4 additions and 4 deletions

View File

@ -7,9 +7,9 @@
// that should be converted to search Topsites
const SEARCH_SHORTCUTS = [
{keyword: "@amazon", shortURL: "amazon", url: "https://amazon.com", searchIdentifier: /^amazon/},
{keyword: "@baidu", shortURL: "baidu", url: "https://baidu.com", searchIdentifier: /^baidu/},
{keyword: "@\u767E\u5EA6", shortURL: "baidu", url: "https://baidu.com", searchIdentifier: /^baidu/},
{keyword: "@google", shortURL: "google", url: "https://google.com", searchIdentifier: /^google/},
{keyword: "@yandex", shortURL: "yandex", url: "https://yandex.com", searchIdentifier: /^yandex/}
{keyword: "@\u044F\u043D\u0434\u0435\u043A\u0441", shortURL: "yandex", url: "https://yandex.com", searchIdentifier: /^yandex/}
];
this.SEARCH_SHORTCUTS = SEARCH_SHORTCUTS;

View File

@ -949,8 +949,8 @@ const ENGINE_ALIASES = new Map([
["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) {