Skip to content

Commit 10812bd

Browse files
authored
Apply simultaneous start() restriction to all browsing contexts.
1 parent e9ffffd commit 10812bd

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

index.html

+18-8
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,9 @@ <h2>
387387
"https://www.w3.org/TR/html51/browsers.html#creating-a-new-browsing-context">
388388
creating a new browsing context</a></dfn>, and <dfn><a href=
389389
"https://www.w3.org/TR/html51/webappapis.html#current">current
390-
realm</a></dfn> are defined by [[!HTML51]].
390+
realm</a></dfn>, <dfn><a href=
391+
"https://www.w3.org/TR/html51/webappapis.html#responsible-browsing-context">
392+
responsible browsing context</a></dfn> are defined by [[!HTML51]].
391393
</p>
392394
<p>
393395
The term <dfn><a href=
@@ -837,7 +839,11 @@ <h3>
837839
by calling <code><a for="PresentationRequest">start</a>()</code> or
838840
<code><a for="PresentationRequest">reconnect</a>()</code>, or
839841
received a <a>presentation connection</a> via a <a for=
840-
"PresentationRequest">connectionavailable</a> event.
842+
"PresentationRequest">connectionavailable</a> event. In algorithms
843+
for <a><code>PresentationRequest</code></a>, the <a>controlling
844+
browsing context</a> is the <a>responsible browsing context</a> whose
845+
<a>JavaScript realm</a> was used to construct the
846+
<a><code>PresentationRequest</code></a>.
841847
</p>
842848
<p>
843849
The <dfn data-lt=
@@ -1128,14 +1134,15 @@ <h4>
11281134
<a>Promise</a> rejected with an <a>InvalidAccessError</a> exception
11291135
and abort these steps.
11301136
</li>
1131-
<li>Let <var>presentationUrls</var> be the <a>presentation request
1132-
URLs</a> of <var>presentationRequest</var>.
1137+
<li>Let <var>topContext</var> be the <a>top-level browsing
1138+
context</a> of the <a>controlling browsing context</a>.
11331139
</li>
11341140
<li>If there is already an unsettled <a>Promise</a> from a previous
1135-
call to <a for="PresentationRequest">start</a> on any
1136-
<a>PresentationRequest</a> in the same <a>controlling browsing
1137-
context</a>, return a new <a>Promise</a> rejected with an
1138-
<a>OperationError</a> exception and abort all remaining steps.
1141+
call to <a for="PresentationRequest">start</a> in
1142+
<var>topContext</var> or any <a>browsing context</a> in the <a>list
1143+
of descendant browsing contexts</a> of <var>topContext</var>,
1144+
return a new <a>Promise</a> rejected with an <a>OperationError</a>
1145+
exception and abort all remaining steps.
11391146
</li>
11401147
<li>Let <var>P</var> be a new <a>Promise</a>.
11411148
</li>
@@ -1148,6 +1155,9 @@ <h4>
11481155
<a>monitor the list of available presentation displays</a> <a>in
11491156
parallel</a>.
11501157
</li>
1158+
<li>Let <var>presentationUrls</var> be the <a>presentation request
1159+
URLs</a> of <var>presentationRequest</var>.
1160+
</li>
11511161
<li>Request user permission for the use of a <a>presentation
11521162
display</a> and selection of one presentation display.
11531163
</li>

0 commit comments

Comments
 (0)