Closed Bug 2061813 Opened 3 months ago Closed 24 days ago

Notify newtab when a link is opened from the native context menu

Categories

(Firefox :: New Tab Page, task)

task

Tracking

()

RESOLVED FIXED

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.

Blocks: 2060315

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.

Attachment #9625009 - Attachment is obsolete: true

This was merged into and landed with bug 2060322.

Status: NEW → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: