Skip to content
Closed
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 37 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,12 @@ <h3>Endpoints</h3>
<td><a>Fullscreen Window</a></td>
</tr>

<tr>
<td>POST</td>
<td>/session/{<var>session id</var>}/window/consume-user-activation</td>
<td>[=Consume user activation of Window=]</td>
</tr>

<tr>
<td>GET</td>
<td>/session/{<var>session id</var>}/element/active</td>
Expand Down Expand Up @@ -4039,8 +4045,38 @@ <h4><dfn>Fullscreen Window</dfn></h4>
context</a>.
</ol>
</section> <!-- /Fullscreen Window -->

</section> <!-- /Switch To Window -->
<section>
<h3><dfn>Consume user activation of Window</dfn></h3>

<table class="simple jsoncommand">
<tr>
<th>HTTP Method</th>
<th>URI Template</th>
</tr>
<tr>
<td>POST</td>
<td>/session/{<var>session id</var>}/window/consume-user-activation</td>
</tr>
</table>

<p>The <a>remote end steps</a> are:

<ol>
<li><p>If the <a>current top-level browsing context</a> is <a>no longer open</a>,
return <a>error</a> with <a>error code</a> <a>no such window</a>.

<li><p><a>Handle any user prompts</a> and return its value if it is an <a>error</a>.

<li><p>Let |window| be <a>current browsing context</a>'s [=active window=].

<li><p>Let |consume| be true if |window| has [=transient activation=] or false otherwise.

<li><p>If |consume| is true, [=consume user activation=] of |window|.

<li><p>Return <a>success</a> with data |consume|.
</ol>
</section> <!-- /Consume User Activation of Window -->
</section> <!-- /Contexts -->

<section>
Expand Down