зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
03a5604053
Коммит
fca3f1322c
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче