Closed Bug 2078839 Opened 1 month ago Closed 27 days ago

Add the game widget scaffold

Categories

(Firefox :: New Tab Page, task)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: gharp, Assigned: rhamoui)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [hnt][hnt-wattle])

Attachments

(1 external file)

A partner is supplying a game for the New Tab widget row, delivered as a Mozilla-hosted iframe bundle served through Merino. The game is played in a modal over New Tab, not inside the card (proof of concept in bug 2074718). Add the Firefox-side scaffold so the integration work has a container to land in. Follows the Recent Searches scaffold in bug 2065011.

AC:

  • Registry entry in WIDGET_REGISTRY (common/WidgetsRegistry.mjs) with a telemetryName and order; component added to WIDGET_ROW_COMPONENTS
  • Pref constants exported and registered in lib/ActivityStream.sys.mjs: enabledPref defaulting to off, sizePref, and systemEnabledPref
  • Strings (title, Customize Panel toggle, menu label) land in bug 2078835; this bug depends on it
  • Medium (4x2) and Large (4x4) sizes available through the existing size submenu; movable through MoveSubmenu
  • Toggle in the Customize Panel; the about:preferences#home row comes from the registry as for every other widget
  • Empty card uses the standard widget header and context menu (change size, move, hide, learn more); menu button labeled "Open [widget name] menu"; spacing from design tokens
  • <h2> accessible name normalized through WidgetWrapper.jsx, not hardcoded English
  • Stubbed feed broadcasts an empty result set so the parent to content data path is wired end to end

Out of scope, all follow-ups: iframe loading and usePageVisible gating, the modal play surface (bug 2074718), the Merino bundle endpoint and trainhopConfig resolution, the trainhop enablement and size keys, and the region/locale control.

Assignee: nobody → rhamoui
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
QA Whiteboard: [qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: