WebAPI/WidgetAPI: Difference between revisions
< WebAPI
Jump to navigation
Jump to search
| Line 4: | Line 4: | ||
==Proposal== | ==Proposal== | ||
===embed-widgets === | ===embed-widgets === | ||
New permission to allow 3rd- | New permission to allow 3rd-party APPs have ability to open 'widgets' in their own APP. {{bug|1005818}} | ||
<iframe mozapp="manifesturl" mozwidget="mywidget1"> | <iframe mozapp="manifesturl" mozwidget="mywidget1"> | ||
===extend manifest.webapp=== | ===extend manifest.webapp=== | ||
Declare details of widget in mainfest. | Declare details of widget in mainfest. | ||
Revision as of 09:56, 9 May 2014
Widget API
Use case
Proposal
embed-widgets
New permission to allow 3rd-party APPs have ability to open 'widgets' in their own APP. bug 1005818
<iframe mozapp="manifesturl" mozwidget="mywidget1">
extend manifest.webapp
Declare details of widget in mainfest.
{
name: "MyApp2000",
...
widgets: {
"mywidget1": {
href: "widget.html"
positions: ["homescreen", "lockscreen"]
description: "This is my cool widget"
},
"myotherwidget": { ... }
}
}