Confirmed users
716
edits
Evelyn Hung (talk | contribs) |
No edit summary |
||
Line 12: | Line 12: | ||
widgets: { | widgets: { | ||
"mywidget1": { | "mywidget1": { | ||
href: "widget.html | href: "widget.html", | ||
description: "This is my cool widget", | |||
description: "This is my cool widget" | screenshot: "foo.jpg" | ||
}, | }, | ||
"myotherwidget": { ... } | "myotherwidget": { ... } | ||
} | } | ||
widgetPages: [ | |||
"widget.html", | |||
"news_reader_settings.html", | |||
"some_other_page.html" | |||
] | |||
} | } | ||
Line 25: | Line 30: | ||
* "embed-widgets" is a new permission for "mozapp" attribute, it comes from [https://developer.mozilla.org/en-US/Apps/Build/App_permissions#embed-apps 'embed-apps'] but is more restricted. Please refer to [https://wiki.mozilla.org/WebAPI/WidgetAPI#Browser_API next section]. | * "embed-widgets" is a new permission for "mozapp" attribute, it comes from [https://developer.mozilla.org/en-US/Apps/Build/App_permissions#embed-apps 'embed-apps'] but is more restricted. Please refer to [https://wiki.mozilla.org/WebAPI/WidgetAPI#Browser_API next section]. | ||
* Set manifest entry in "widget" attribute. | * Set manifest entry in "widget" attribute. | ||
<iframe mozbrowser=“true" | <iframe mozbrowser=“true" mozwidget="manifestURL" src=“widget.html” remote=“true”> | ||
=== permission requirements === | === permission requirements === |