diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /browser/components/newtab/lib/TelemetryFeed.sys.mjs | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/newtab/lib/TelemetryFeed.sys.mjs')
-rw-r--r-- | browser/components/newtab/lib/TelemetryFeed.sys.mjs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/browser/components/newtab/lib/TelemetryFeed.sys.mjs b/browser/components/newtab/lib/TelemetryFeed.sys.mjs index 99bed168a8..1a9e9e3d34 100644 --- a/browser/components/newtab/lib/TelemetryFeed.sys.mjs +++ b/browser/components/newtab/lib/TelemetryFeed.sys.mjs @@ -714,8 +714,8 @@ export class TelemetryFeed { }); const session = this.sessions.get(au.getPortIdOfSender(action)); switch (action.data?.event) { - case "CLICK": - const { card_type, topic, recommendation_id, tile_id, shim } = + case "CLICK": { + const { card_type, topic, recommendation_id, tile_id, shim, feature } = action.data.value ?? {}; if ( action.data.source === "POPULAR_TOPICS" || @@ -725,6 +725,11 @@ export class TelemetryFeed { newtab_visit_id: session.session_id, topic, }); + } else if (action.data.source === "FEATURE_HIGHLIGHT") { + Glean.newtab.tooltipClick.record({ + newtab_visit_id: session.session_id, + feature, + }); } else if (["spoc", "organic"].includes(card_type)) { Glean.pocket.click.record({ newtab_visit_id: session.session_id, @@ -739,6 +744,7 @@ export class TelemetryFeed { } } break; + } case "SAVE_TO_POCKET": Glean.pocket.save.record({ newtab_visit_id: session.session_id, |