Closed Bug 2078934 Opened 1 month ago Closed 2 days ago

Create a new AddonManager provider for generated widgets

Categories

(Firefox :: Widgets, task, P3)

task
Points:
8

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: fchasen, Assigned: fchasen)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 external file)

Need a new manager class to handle loading, starting and stopping generated widgets.

Points: --- → 3
Assignee: nobody → fchasen
Status: NEW → ASSIGNED
Points: 3 → 8

Generated widgets will be small unprivileged extensions that define a builtin_widget and have a limited manifest and permissions.

They are created and installed locally and are managed by a new add-on provider, which keeps them in the profile and exposes them through the AddonManager.

  • Adds a GeneratedWidgetExtension, an Extension subclass that allows generated widgets to define widgets and limits them to an allowlist of manifest keys and permissions.
  • Registers a GeneratedWidgetsProvider add-on provider that installs, updates and uninstalls generated widgets and starts them at startup.
  • extensions.widgets.generated.enabled registers and unregisters the provider.
  • Keeps the local widget XPIs and a widgets.json.mozlz4 store of installed widgets in a profile's generated-widgets directory.
  • Adds ExtensionData.canUseWidgets() to prevent unprivileged extensions from using builtin_widget, which GeneratedWidgetExtension overrides.
Status: ASSIGNED → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
Regressions: 2097910
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: