WebAPI/WidgetAPI: Difference between revisions

Jump to navigation Jump to search
Prevent Pages to Be Embedded {{bug|1043110}}
No edit summary
(Prevent Pages to Be Embedded {{bug|1043110}})
 
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 [http://dxr.mozilla.org/mozilla-central/source/xpcom/base/ErrorList.h#474 NS_ERROR_DOM_INVALID_ACCESS_ERR]
*for existing app page: show NS_ERROR_MALFORMED_URI
*for missing app page: show [http://dxr.mozilla.org/mozilla-central/source/xpcom/base/ErrorList.h#474 NS_ERROR_DOM_INVALID_ACCESS_ERR]
*for missing app page: show NS_ERROR_MALFORMED_URI
*for external web page: show [http://dxr.mozilla.org/mozilla-central/source/xpcom/base/ErrorList.h#474 NS_ERROR_DOM_INVALID_ACCESS_ERR]
*for external web page: show NS_ERROR_MALFORMED_URI


=== Other Notes ===
=== Other Notes ===
Confirmed users
29

edits

Navigation menu