WebAPI/PresentationAPI: Difference between revisions

Jump to navigation Jump to search
→‎Interface: align latest m-c
m (→‎WebIDL Implementation: link to WebIDL implementation detail)
(→‎Interface: align latest m-c)
Line 13: Line 13:


== Interface ==
== Interface ==
* For 1-UA user agent, three preferences "dom.presentation.enabled", "dom.presentation.controller.enabled", and "dom.presentation.receiver.enabled" need to be set to true.
* For 2-UAs controlling user agent, two preferences "dom.presentation.enabled" and "dom.presentation.controller.enabled" need to be set to true.
* For 2-UAs receiving user agent, two preferences "dom.presentation.enabled" and "dom.presentation.receiver.enabled" need to be set to true.


=== Presentation ===
=== Presentation ===
* [https://w3c.github.io/presentation-api/#interface-presentation WebIDL]
* [https://w3c.github.io/presentation-api/#interface-presentation WebIDL]
* defaultRequest is not supported yet.
* No UI support for defaultRequest.


=== PresentationRequest ===
=== PresentationRequest ===
* [https://w3c.github.io/presentation-api/#interface-presentationrequest WebIDL]
* [https://w3c.github.io/presentation-api/#interface-presentationrequest WebIDL]
* support URL with http:// protocol scheme to open web page in private browsing mode
* support URL with http:// protocol scheme to open web page in private browsing mode
* support URL with app:// protocol scheme to launch an packaged app installed on target device
* support URL with app:// protocol scheme to launch an packaged app installed on target B2G device
** can only launch packaged apps with '''''"presentation"''''' permission declared
* only available in controlling browsing context
* session reconnect is not supported yet. [https://bugzilla.mozilla.org/show_bug.cgi?id=1197690 bug 1197690 (NEW)]


=== PresentationReceiver ===
=== PresentationReceiver ===
* [https://w3c.github.io/presentation-api/#interface-presentationreceiver WebIDL]
* [https://w3c.github.io/presentation-api/#interface-presentationreceiver WebIDL]
* only available in receiving browsing context
* many-to-one session is not supported yet. [https://bugzilla.mozilla.org/show_bug.cgi?id=1195605 bug 1195605 (NEW)]
* many-to-one session is not supported yet. [https://bugzilla.mozilla.org/show_bug.cgi?id=1195605 bug 1195605 (NEW)]


=== PresentationConnection ===
=== PresentationConnection ===
* [https://w3c.github.io/presentation-api/#interface-presentationconnection WebIDL]
* [https://w3c.github.io/presentation-api/#interface-presentationconnection WebIDL]
* Binary type message is not supported yet. [https://bugzilla.mozilla.org/show_bug.cgi?id=1148307 bug 1148307 (ONGOING)]
 
* session close is not supported yet. [https://bugzilla.mozilla.org/show_bug.cgi?id=1210340 bug 1210340 (NEW)]
=== PresentationConnectionList ===
* [https://w3c.github.io/presentation-api/#interface-presentationconnectionlist WebIDL]
* only available in receiving browsing context


=== PresentationAvailability ===
=== PresentationAvailability ===
* [https://w3c.github.io/presentation-api/#interface-presentationavailability WebIDL]
* [https://w3c.github.io/presentation-api/#interface-presentationavailability WebIDL]
* only available in controlling browsing context


== Architecture ==
== Architecture ==
Confirmed users
216

edits

Navigation menu