зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1822027 - Do not show SPOC topsites in the URLbar r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D173025
This commit is contained in:
Родитель
8ca988dcf3
Коммит
76bc2cc0fb
|
@ -720,6 +720,9 @@ class TopSitesFeed {
|
|||
// Actual position can shift based on other content.
|
||||
// We send the intended position in the ping.
|
||||
pos: positionIndex,
|
||||
// Set this so that SPOC topsites won't be shown in the URL bar.
|
||||
// See Bug 1822027. Note that `sponsored_position` is 1-based.
|
||||
sponsored_position: positionIndex + 1,
|
||||
};
|
||||
sponsored.push(link);
|
||||
}
|
||||
|
|
|
@ -645,6 +645,7 @@ describe("Top Sites Feed", () => {
|
|||
const result = await feed.getLinksWithDefaults();
|
||||
assert.equal(result[1].type, "SPOC");
|
||||
assert.equal(result[1].title, "test spoc");
|
||||
assert.equal(result[1].sponsored_position, 2);
|
||||
assert.equal(result[1].url, "https://test-spoc.com");
|
||||
});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче