Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1088391 of PresentationConnectionClosedEvent

  • Revision slug: Web/API/PresentationConnectionClosedEvent
  • Revision title: PresentationConnectionClosedEvent
  • Revision id: 1088391
  • Created:
  • Creator: MashKao
  • Is current revision? No
  • Comment

Revision Content

A PresentationConnectionClosedEvent is fired when a presentation connection enters a closed state. The reason attribute provides the reason why the connection was closed.

Property

error
means that the mechanism for connecting or communicating with a presentation entered an unrecoverable error.
closed
means that either the controlling browsing context or the receiving browsing context that were connected by the PresentationConnection called close().
wentaway
means that the browser closed the connection, for example, because the browsing context that owned the connection navigated or was discarded.

When the reason attribute is error, the user agent SHOULD set the error message to a human readable description of how the communication channel encountered an error.

Revision Source

<p>A <code>PresentationConnectionClosedEvent</code> is fired when a <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-presentation-connection">presentation connection</a> enters a <a class="internalDFN" data-for="PresentationConnectionState" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dom-presentationconnectionstate-closed"><code>closed</code></a> state. The <code>reason</code> attribute provides the reason why the connection was closed.</p>

<h2 id="Attribute">Property</h2>

<dl>
 <dt><dfn data-dfn-for="presentationconnectionclosedreason" data-dfn-type="dfn" data-idl="" id="dom-presentationconnectionclosedreason-error"><code>error</code></dfn></dt>
 <dd>means that the mechanism for connecting or communicating with a presentation entered an unrecoverable error.</dd>
 <dt><dfn data-dfn-for="presentationconnectionclosedreason" data-dfn-type="dfn" data-idl="" id="dom-presentationconnectionclosedreason-closed"><code>closed</code></dfn></dt>
 <dd>means that either the <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-controlling-browsing-context">controlling browsing context</a> or the <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-receiving-browsing-context">receiving browsing context</a> that were connected by the <code>PresentationConnection</code> called <code>close()</code>.</dd>
 <dt><dfn data-dfn-for="presentationconnectionclosedreason" data-dfn-type="dfn" data-idl="" id="dom-presentationconnectionclosedreason-wentaway"><code>wentaway</code></dfn></dt>
 <dd>means that the browser closed the connection, for example, because the browsing context that owned the connection navigated or was discarded.</dd>
</dl>

<p>When the <code>reason</code> attribute is <a class="internalDFN" data-for="PresentationConnectionClosedReason" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dom-presentationconnectionclosedreason-error"><code>error</code></a>, the user agent <em class="rfc2119" title="SHOULD">SHOULD</em> set the error message to a human readable description of how the communication channel encountered an error.</p>
Revert to this revision