Closed Bug 1893269 Opened 5 months ago Closed 4 months ago

Build out basic infrastructure for BackupService management UI

Categories

(Firefox :: Profile Backup, task, P3)

task

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-device-migration])

Attachments

(1 file)

This bug is for doing the following:

  1. Creating a new BackupUIParent / BackupUIChild JSWindowActor pair that can run in about:preferences. Have the BackupUIChild get instantiated on an untrusted BackupUI:InitWidget event.
  2. Create a simple custom element that gets loaded into about:preferences, and upon binding to the DOM, emits the BackupUI:InitWidget event.
  3. Have the BackupUIChild handle that event. Upon receiving BackupUI:InitWidget, have the BackupUIChild add the widget element to an internal WeakSet of widgets.
  4. Have the BackupService expose a state getter. This getter should return an empty and frozen object by default.
  5. Have the BackupService extend EventTarget.
  6. Have the BackupUIParent add an event listener for BackupService:StateUpdate.
  7. Insert the custom element from 2/3 into the section of about:preferences added in bug 1892959.

We'll want some very very basic tests here. We'll want to test that the BackupUI:InitWidget event is properly fired, at least. We'll want to flesh out more tests as we actually get to the point of exposing state via that BackupService.state object.

It is an explicit goal that the custom element from steps 2 and 3 of comment 0 can, in the future, be loaded up and manipulated in Storybook.

Assignee: nobody → mconley
Status: NEW → ASSIGNED
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/49f0339c4d76
Build out basic infrastructure for backup management UI. r=backup-reviewers,settings-reviewers,firefox-desktop-core-reviewers ,Gijs,fluent-reviewers,kpatenio
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: