Closed Bug 2074341 Opened 2 months ago Closed 1 month ago

Render a widget using moz-widget when its config has a src or extension id set

Categories

(Firefox :: Widgets, task, P3)

task
Points:
5

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: fchasen, Assigned: fchasen)

References

(Blocks 2 open bugs)

Details

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

Attachments

(1 external file)

No description provided.
Summary: Render a widget using moz-widget when it's config has a src set → Render a widget using moz-widget when its config has a src set
Summary: Render a widget using moz-widget when its config has a src set → Render a widget using moz-widget when its config has a src or extension id set

Update the WidgetsRegistry to handle getting the src for the various configs, or if there is an extension id set getting it from a list of extension url generated in the PrefsFeed.

The feed should check take an extension id and find the url or return empty if the extension isn't installed. For now I think the url should resolve from a path in the config and not the manifest widget.src property. Partially as that doesn't exist yet and partially as the flexibility might be helpful?

Priority: P4 → P3
Points: --- → 5
Assignee: nobody → fchasen
Status: NEW → ASSIGNED
Whiteboard: [hnt][hnt-wattle]
  • Adds src and extensionID to the config for widgets.
  • Widgets with URL in src set will render using the moz-widget component with that src set on the internal iframe.
  • ExtensionWidgetsFeed listens for extension changes and updates the available widgets.
  • Widgets with an extension id will temporarily get the first web accessible resource set as the src URL.
  • If the extension url can't be resolved (missing extension / no web accessible resources) the widget won't be shown.
  • Extension widgets use the extension's name as their toggle label.
  • Applies the drag pointer-events and cell sizing rules to moz-widget.
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/586202ff7c9a https://hg.mozilla.org/integration/autoland/rev/cbfe9c972425 Revert "Bug 2074341, Bug 2070709, Bug 2070684, Bug 2070663 - Add ExtensionWidgetsFeed for widgets provided by extensions. r=mconley" for causing mass failures @nsContentSecurityUtils.cpp.

Backed out for causing mass failures @nsContentSecurityUtils.cpp.

Flags: needinfo?(fchasen)
Attachment #9647711 - Attachment description: Bug 2074341 - Add ExtensionWidgetsFeed for widgets provided by extensions. r=mconley! → Bug 2074341 - Add ExtensionWidgetsFeed for widgets provided by extensions. r=mconley!,tschuster
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
QA Whiteboard: [qa-triage-done-c161/b160]
Flags: needinfo?(fchasen)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: