Bug 1642597 - Don't override the amazon search top site if it was re-added manually. r=mikedeboer

Differential Revision: https://phabricator.services.mozilla.com/D78256
This commit is contained in:
Dão Gottwald 2020-06-04 14:43:59 +00:00
Родитель 03a5604053
Коммит fca3f1322c
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -430,7 +430,12 @@ this.TopSitesFeed = class TopSitesFeed {
link.typedBonus = true;
if (amazonSearchTileOverrideURL) {
if (link.searchTopSite && link.label === "@amazon") {
// The `searchVendor` property is set if the engine was re-added manually.
if (
link.searchTopSite &&
!link.searchVendor &&
link.label === "@amazon"
) {
delete link.searchTopSite;
delete link.label;
link.url = amazonSearchTileOverrideURL;