Notify newtab when a link is opened from the native context menu
Categories
(Firefox :: New Tab Page, task)
Tracking
()
People
(Reporter: joelkelly, Assigned: joelkelly)
References
(Blocks 1 open bug)
Details
(Whiteboard: [hnt][hnt-journeys])
Attachments
(1 obsolete file)
newtab can't record clicks from the native context menu - the menu handles the anchor in the parent and nothing gets back to the page. Bug 2060321 and bug 2060322 both need this.
Notify newtab from the link-open methods in nsContextMenu.sys.mjs with the link URL, where, and background. TelemetryFeed resolves the tile by URL from state it already holds, and the session via AboutNewTabParent.loadedTabs. No DOM or content changes.
Starting with new tab, new window, and new private window. format will be null, since it's computed from viewport at click time.
newtab cannot record clicks made through Firefox's own context menu. The menu
handles the anchor here in the parent and nothing reaches the page, so there is
no signal for the newtab telemetry in bug 2060321 and bug 2060322 to consume.
Notify observers with the link URL, the load target, and whether the load is
backgrounded, gated on the browser being a loaded newtab so nothing fires
elsewhere. Consumers resolve the tile themselves.
Open in a new tab, a new window, and a new private window are reported. The
remaining open-link items are left commented until we confirm they should be
recorded.
Updated•1 month ago
|
Comment 2•24 days ago
|
||
This was merged into and landed with bug 2060322.
Description
•