Open Bug 2081465 Opened 1 month ago Updated 5 days ago

Create framed widget parent

Categories

(Firefox :: New Tab Page, enhancement)

enhancement

Tracking

()

ASSIGNED

People

(Reporter: maxx, Assigned: maxx)

References

(Blocks 1 open bug)

Details

Attachments

(3 obsolete files)

No description provided.

Adds a test-only "framed" newtab widget that renders an iframe (widgets.framed.endpoint, default the solitaire bucket) below a Crossword-style header. Includes the registry entry, prefs, the frame-src CSP origin, the customize toggle string, the header's "..." menu (size, move, hide), which also serves as the drag handle, and loading the iframe only once the card first scrolls into view.

Validates postMessage traffic from the framed widget (origin, source, channel, and the protocol v1 payload rules), waits for the widget_ready check before showing the iframe, and falls back to a "Try again" card after a 12s load timeout or a terminal widget_error.

Wraps the iframe in a dialog that stays in the card (show()) and becomes modal (showModal()) on the widget's start_game action, so the same document keeps running at up to 950x600. close_game and reset_game shrink it back; the X button, a backdrop click and Esc close it and reload the frame into its resume state. The card's header is hidden while the game is open.

Assignee: nobody → mcrawford
Status: NEW → ASSIGNED
Attachment #9658854 - Attachment is obsolete: true
Attachment #9658855 - Attachment is obsolete: true
Attachment #9658856 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: