diff --git a/index.html b/index.html index 33bd6f3..5cbde44 100644 --- a/index.html +++ b/index.html @@ -76,17 +76,8 @@ ], sotdAfterWGinfo: true, group: 'secondscreen', - xref: ['html', 'webidl'], + xref: ['dom', 'fileapi', 'mixed-content', 'html', 'url', 'webidl', 'webrtc'], localBiblio: { - PROMGUIDE: { - title: 'Writing Promise-Using Specifications', - href: 'http://www.w3.org/2001/tag/doc/promises-guide', - authors: [ - 'Domenic Denicola' - ], - status: 'finding', - publisher: 'W3C' - }, DIAL: { title: 'DIscovery And Launch Protocol Specification', href: 'http://www.dial-multiscreen.org/dial-protocol-specification', @@ -317,334 +308,96 @@
- The following terms are defined in [[!HTML]]: -
-BinaryType
- EventHandler
- Navigator
- - The term JavaScript - realm is defined in [[!ECMASCRIPT]]. + The term JavaScript realm is used as defined in ECMAScript + [[!ECMASCRIPT]].
- The terms and concepts EventTarget
,
- Event
,
- EventInit
,
- firing an
- event, and trusted
- event are defined in [[!DOM]].
+ The term current realm is used as defined in ECMAScript [[!ECMASCRIPT]].
- The term MessageEvent
- is defined in [[!WEBMESSAGING]].
+ The terms resolved and rejected in the context of {{Promise}} objects
+ are used as defined in [[!ECMASCRIPT]].
- This document provides interface definitions using the Web IDL standard - [[!WEBIDL-2]]. + The header Accept-Language is used as defined in HTTP/1.1 [[!rfc7231]].
- The terms throw, - Promise, - ArrayBuffer, - ArrayBufferView, - and the following exception names are defined in [[!WEBIDL-2]]: + HTTP authentication is used as defined in HTTP/1.1: + Authentication [[!rfc7235]].
-InvalidAccessError
- NotFoundError
- NotSupportedError
- OperationError
- SecurityError
- SyntaxError
- NotAllowedError
- - The terms resolving - a Promise and rejecting - a Promise are used as explained in [[!PROMGUIDE]]. + The term cookie store is used as defined in RFC 6265 [[!COOKIES]].
- The term URL - is defined in the WHATWG URL standard [[!URL]]. + The term UUID is used as defined in RFC 4122 [[!rfc4122]].
- The term Blob
- is defined in the File API specification [[!FILEAPI]].
+ The term DIAL is used as defined in DIAL [[DIAL]].
- The header Accept-Language
- is defined in HTTP/1.1 [[!rfc7231]].
+ The term trusted event refers to an {{Event}} whose
+ {{Event/isTrusted}} attribute is true
in [[!DOM]].
- HTTP - authentication is defined in HTTP/1.1: Authentication - [[!rfc7235]]. + The term reload a document refers to steps run when the + {{Location/reload()}} method gets called in [[!HTML]].
- The term RTCDataChannel
- is defined in the WebRTC API specification [[WEBRTC]].
+ The term local storage area refers to the storage areas
+ exposed by the {{WindowLocalStorage/localStorage}} attribute, and the
+ term session storage area refers to the storage areas exposed
+ by the {{WindowSessionStorage/sessionStorage}} attribute in [[!HTML]].
- The term cookie store - is defined in RFC 6265 [[!COOKIES]]. -
-- The term UUID is defined in RFC - 4122 [[!rfc4122]]. -
-- The terms permission - descriptor type and permission - state are defined in [[!PERMISSIONS]]. -
-- The term database - is defined in [[!INDEXEDDB]]. -
-- The terms local - storage areas and session - storage areas are defined in [[!WEBSTORAGE]]. -
-- The term - a priori authenticated URL is defined in [[!MIXED-CONTENT]]. -
-- The terms service - worker, - - a list of registered service worker registrations, - caches, - window - client and worker - client are defined in [[!SERVICE-WORKERS]]. -
-- The term DIAL - is defined in [[DIAL]]. + This specification references terms exported by other specifications, + see . It also references the + following internal concepts from other specifications:
+PresentationRequest
, the controlling
- browsing context is the responsible browsing context whose
+ for PresentationRequest, the controlling
+ browsing context is the browsing context whose
JavaScript realm was used to construct the
- PresentationRequest
.
+ PresentationRequest.
The
null
, provides the presentation controllers
monitor once the initial presentation connection is
established. The presentation controllers promise is
- represented by a Promise that resolves with the
+ represented by a {{Promise}} that resolves with the
presentation controllers monitor.
@@ -1120,7 +873,7 @@
- The presentation
- attribute is used to retrieve an instance of the Presentation interface. It MUST return the
- Presentation
instance.
+ The presentation
+ attribute is used to retrieve an instance of the Presentation
+ interface. It MUST return the Presentation instance.
The
- A
- When a receiver
- attribute MUST return the PresentationReceiver
+ attribute MUST return the PresentationReceiver
instance associated with the receiving browsing context and
created by the receiving user agent when the receiving
browsing context is
};
PresentationRequest
object is associated with a
+ A PresentationRequest object is associated with a
request to initiate or reconnect to a presentation made by a
controlling browsing context. The
- PresentationRequest
object MUST be implemented in
+ PresentationRequest object MUST be implemented in
a controlling browsing context provided by a controlling
user agent.
PresentationRequest
is constructed, the
+ When a PresentationRequest is constructed, the
given urls
MUST be used as the list of presentation request URLs which are
each a possible presentation URL for the
- PresentationRequest
instance.
+ PresentationRequest instance.
@@ -1272,12 +1024,12 @@
-
the current settings object.
- A PresentationAvailability
object exposes the
+ A PresentationAvailability object exposes the
presentation display availability for a presentation request.
The presentation display availability for a
PresentationRequest stores whether there is currently any
@@ -1776,7 +1528,7 @@
PresentationAvailability
object MUST be
+ the PresentationAvailability object MUST be
implemented in a controlling browsing context.
@@ -1840,7 +1592,7 @@
- A controlling user agent fires a trusted event
- named controlling user agent [=fire an event|fires=] a trusted
+ event named connectionavailable on a
PresentationRequest when a connection associated with the
object is created. It is fired at the PresentationRequest
instance, using the PresentationConnectionAvailableEvent
interface, with the connection attribute set
- to the PresentationConnection
object that was
+ to the PresentationConnection object that was
created. The event is fired for each connection that is created for
the controller, either by the controller calling
start or
@@ -2108,15 +1860,15 @@
defaultRequest
.
- A receiving user agent fires a trusted event
- named receiving user agent [=fire an event|fires=] a trusted
+ event named connectionavailable on a
PresentationReceiver when an incoming connection is created.
It is fired at the presentation controllers monitor, using
the PresentationConnectionAvailableEvent interface, with the
connection attribute set
- to the PresentationConnection
object that was
+ to the PresentationConnection object that was
created. The event is fired for all connections that are created
when monitoring incoming presentation connections.
The binaryType attribute can take one of the values of
- BinaryType. When a PresentationConnection object is
+ {{BinaryType}}. When a PresentationConnection object is
created, its binaryType attribute MUST be set to
the string "arraybuffer
". On getting, it MUST return
@@ -2249,8 +2001,8 @@
blob
", binary
- data is returned in Blob form; by setting it to
- "arraybuffer
", it is returned in ArrayBuffer
+ data is returned in {{Blob}} form; by setting it to
+ "arraybuffer
", it is returned in {{ArrayBuffer}}
form. The attribute defaults to "arraybuffer
". This
attribute has no effect on data sent in a string form.
@@ -2320,9 +2072,9 @@ RTCDataChannel
in reliable mode.
+ {{RTCDataChannel}} in reliable mode.
Let presentation message data be the payload data to be @@ -2384,8 +2136,8 @@
- InvalidStateError
exception.
+ "PresentationConnectionState">connected, [=exception/throw=] an
+ {{InvalidStateError}} exception.
binary
if messageOrData is of type
- ArrayBuffer, ArrayBufferView, or Blob. Let
+ {{ArrayBuffer}}, {{ArrayBufferView}}, or {{Blob}}. Let
messageType be text
if
messageOrData is of type DOMString
.
Unable to send binary message (invalid_message)
- for ArrayBuffer, ArrayBufferView and Blob
+ for {{ArrayBuffer}}, {{ArrayBufferView}} and {{Blob}}
messages.
message
, which does not bubble, is not cancelable, and
has no default action.
binary
, and
binaryType attribute is set to "blob
", then
initialize event's data
attribute to a
- new Blob object with messageData as its raw
+ new {{Blob}} object with messageData as its raw
data.
binary
, and
binaryType attribute is set to
"arraybuffer
", then initialize event's
- data
attribute to a new ArrayBuffer object
+ data
attribute to a new {{ArrayBuffer}} object
whose contents are messageData.
close
, that uses the
PresentationConnectionCloseEvent interface, with the
"PresentationConnectionState">terminated.
terminate
whose
- isTrusted attribute is true at known
+ [=Fire an event=] named terminate
whose
+ {{Event/isTrusted}} attribute is true at known
connection.
terminate
whose
- isTrusted attribute is true at connection.
+ [=Fire an event=] named terminate
whose
+ {{Event/isTrusted}} attribute is true at connection.
When the top-level browsing context attempts to navigate to - a new resource and runs the steps to navigate, it MUST + a new resource and runs the [=navigate|steps to navigate=], it MUST follow step 1 to determine if it is allowed to navigate. In addition, it MUST NOT be allowed to navigate itself to a new resource, except by navigating to a fragment identifier or @@ -3062,10 +2813,11 @@
- Window clients and worker clients associated with the + [=service worker client/window client|Window clients=] and [=service + worker client/worker client|worker clients=] associated with the receiving browsing context and its list of descendant browsing contexts must not be exposed to service workers associated with each other. @@ -3080,9 +2832,9 @@
This algorithm is intended to create a well defined environment to @@ -3216,8 +2968,8 @@