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 1088439 of PresentationReceiver

  • Revision slug: Web/API/PresentationReceiver
  • Revision title: PresentationReceiver
  • Revision id: 1088439
  • Created:
  • Creator: MashKao
  • Is current revision? Yes
  • Comment

Revision Content

The PresentationReceiver interface allows a receiving browsing context to access the controlling browsing contexts and communicate with them. The PresentationReceiver interface MUST be implemented in a receiving browsing context provided by a receiving user agent.

Properties

connectionList attribute MUST return the result of running the following steps:
  1. If the presentation controllers promise is not null, return the presentation controllers promise and abort all remaining steps.
  2. Otherwise, let the presentation controllers promise be a new Promise.
  3. Return the presentation controllers promise.
  4. If the presentation controllers monitor is not null, resolve the presentation controllers promise with the presentation controllers monitor.

 

Revision Source

<p>The <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#idl-def-presentationreceiver"><code>PresentationReceiver</code></a> interface allows a <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-receiving-browsing-context">receiving browsing context</a> to access the <a class="internalDFN" data-link-type="dfn" data-lt="controlling browsing context" href="https://www.w3.org/TR/presentation-api/#dfn-controlling-browsing-context">controlling browsing contexts</a> and communicate with them. The <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#idl-def-presentationreceiver"><code>PresentationReceiver</code></a> interface <em class="rfc2119" title="MUST">MUST</em> be implemented in a <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-receiving-browsing-context">receiving browsing context</a> provided by a <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-receiving-user-agent">receiving user agent</a>.</p>

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

<dl>
 <dt><dfn data-dfn-for="presentationreceiver" data-dfn-type="dfn" data-idl="" id="dom-presentationreceiver-connectionlist"><code>connectionList</code></dfn> attribute <em class="rfc2119" title="MUST">MUST</em> return the result of running the following steps:</dt>
</dl>

<ol>
 <li>If the <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-presentation-controllers-promise">presentation controllers promise</a> is not <code>null</code>, return the <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-presentation-controllers-promise">presentation controllers promise</a> and abort all remaining steps.</li>
 <li>Otherwise, let the <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-presentation-controllers-promise">presentation controllers promise</a> be a new <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-promise">Promise</a>.</li>
 <li>Return the <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-presentation-controllers-promise">presentation controllers promise</a>.</li>
 <li>If the <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-presentation-controllers-monitor">presentation controllers monitor</a> is not <code>null</code>, <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-resolving-a-promise">resolve</a> the <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-presentation-controllers-promise">presentation controllers promise</a> with the <a class="internalDFN" data-link-type="dfn" href="https://www.w3.org/TR/presentation-api/#dfn-presentation-controllers-monitor">presentation controllers monitor</a>.</li>
</ol>

<p>&nbsp;</p>
Revert to this revision