Confirmed users
29
edits
Junior Hsu (talk | contribs) (Prevent Pages to Be Embedded {{bug|1043110}}) |
|||
(7 intermediate revisions by 3 users not shown) | |||
Line 15: | Line 15: | ||
"launch_path": "/widget.html", | "launch_path": "/widget.html", | ||
"description": "This is my cool widget", | "description": "This is my cool widget", | ||
" | "preview_image": "foo.jpg", | ||
"locales": { | "locales": { | ||
"en-US": { | "en-US": { | ||
Line 21: | Line 21: | ||
"name":"MyApp2000 Widget", | "name":"MyApp2000 Widget", | ||
"description":"This is my cool widget", | "description":"This is my cool widget", | ||
" | "preview_image": "foo_en-US.jpg" | ||
} | } | ||
} | } | ||
Line 72: | Line 72: | ||
=== Prevent Pages to Be Embedded {{bug|1043110}} === | === Prevent Pages to Be Embedded {{bug|1043110}} === | ||
Widgets' pages MUST be listed in "widgetPages" field which is the white list of widget pages. All pages in this list can be accessed through widget iframe. Others are shown as error pages, including other app pages and external pages. If the widget frame's src points to a page which is NOT listed in widgetPages, | Widgets' pages MUST be listed in "widgetPages" field which is the white list of widget pages. All pages in this list can be accessed through widget iframe. Others are shown as error pages, including other app pages and external pages. If the widget frame's src points to a page which is NOT listed in widgetPages, | ||
*for existing app page: show | *for existing app page: show NS_ERROR_MALFORMED_URI | ||
*for missing app page: show | *for missing app page: show NS_ERROR_MALFORMED_URI | ||
*for external web page: show | *for external web page: show NS_ERROR_MALFORMED_URI | ||
=== Other Notes === | === Other Notes === | ||
Line 162: | Line 162: | ||
==Bugs== | ==Bugs== | ||
* {{bug|1005818}} A new 'embed-widgets' permission exposing to privileged apps for solving widget case. | * <del>{{bug|1005818}}</del> A new 'embed-widgets' permission exposing to privileged apps for solving widget case. | ||
** Part 1: Load a widget as an app if the |src| is in the |widgetPages| | ** Part 1: Load a widget as an app if the |src| is in the |widgetPages| | ||
** Part 2: Only limited browser API are available to a widget | ** Part 2: Only limited browser API are available to a widget | ||
* {{bug|1043110}} an appropriate way to prevent forbidden pages to be embedded in a widget iframe | * {{bug|1043110}} an appropriate way to prevent forbidden pages to be embedded in a widget iframe | ||
* {{bug|1052328}} Let privileged apps be able to launch a widget via APP protocol URIs | |||
* {{bug|1052334}} create a function to retrieve preview image of widget | |||
* {{bug|1053724}} Prevent Widget Frame to Listen/Handle System Message | |||
[[Category:Web APIs]] |