Confirmed users
209
edits
Line 70: | Line 70: | ||
<iframe mozbrowser=“true" remote="true" src="http://example.com"> | <iframe mozbrowser=“true" remote="true" src="http://example.com"> | ||
=== Prevent Pages to Be Embedded === | === 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 [http://dxr.mozilla.org/mozilla-central/source/xpcom/base/ErrorList.h#474 NS_ERROR_DOM_INVALID_ACCESS_ERR] |