commit 12327d5a5c7c9a6e4b803ce39d3b04bd9a91bf6a
parent 67adb419f58e7424c76f1e3bbe7fd3f5f08bd442
Author: Dre Grant <dgrant@mozilla.com>
Date: Wed, 3 Dec 2025 19:19:34 +0000
Bug 2003324 - Remove chosenPartners tracking and Glean event code from TopSitesFeed, r=home-newtab-reviewers,thecount
Differential Revision: https://phabricator.services.mozilla.com/D274980
Diffstat:
1 file changed, 0 insertions(+), 18 deletions(-)
diff --git a/browser/extensions/newtab/lib/TopSitesFeed.sys.mjs b/browser/extensions/newtab/lib/TopSitesFeed.sys.mjs
@@ -1773,7 +1773,6 @@ export class TopSitesFeed {
sponsoredLinks[SPONSORED_TILE_PARTNER_AMP].filter(Boolean);
let sponsored = [];
- let chosenPartners = [];
for (const allocation of allocatedPositions) {
let link = null;
@@ -1801,11 +1800,6 @@ export class TopSitesFeed {
if (!link) {
// No more links to be added across all the partners, just return.
- if (chosenPartners.length) {
- Glean.newtab.sovAllocation.set(
- chosenPartners.map(entry => JSON.stringify(entry))
- );
- }
return sponsored;
}
}
@@ -1817,18 +1811,6 @@ export class TopSitesFeed {
link.pos = allocation.position - 1;
}
sponsored.push(link);
-
- chosenPartners.push({
- pos: allocation.position,
- assigned: assignedPartner, // The assigned partner based on SOV
- chosen: link.partner,
- });
- }
- // Record chosen partners to glean
- if (chosenPartners.length) {
- Glean.newtab.sovAllocation.set(
- chosenPartners.map(entry => JSON.stringify(entry))
- );
}
// add the remaining contile sponsoredLinks when nimbus variable present