Open Bug 2074718 Opened 1 month ago Updated 1 month ago

Build a POC of the modal play surface

Categories

(Firefox :: New Tab Page, enhancement)

enhancement

Tracking

()

People

(Reporter: gharp, Unassigned)

References

Details

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

A partner is supplying a game for the New Tab widget row, delivered as a Mozilla-hosted iframe bundle served through Merino. The game cannot be played inside a widget card, so a CTA will open it in a modal over the New Tab page. Nothing in the widget framework does this today, and working code will help answer some questions: how the iframe moves or re-parents between card and modal without losing game state, where the widget context menu lives while the modal is open, and whether closing mid-game needs a confirmation. Build a throwaway proof of concept against a placeholder bundle, then write up what the production ticket needs.

AC:

  • A CTA on the widget card opens a modal containing the game iframe
  • While the modal is open, the rest of the viewport is not interactive
  • Modal closes via an "x" in the upper-right corner, the ESC key, and clicking outside it
  • Closing while a game is in progress leaves the card showing a "Resume game" CTA that returns the user to the in-progress game
  • Game state survives the close-and-resume cycle, held in the bundle's own localStorage
  • Demonstrate whether the iframe is re-parented or a second frame is mounted, and state the consequence for game state either way
  • Determine where the widget context menu lives while the modal is open
  • Keyboard focus is trapped in the modal and returns to the widget primary CTA on close
  • Write-up the approach taken, the open questions it settles, the ones it does not, and what the partner has to guarantee in the integration contract

Out of scope: production polish, Acorn review, final copy, the real partner bundle, and accessibility within the game itself. The modal's own focus and keyboard behavior is in scope.

You need to log in before you can comment on or make changes to this bug.