Skip to content

Commit 743dd98

Browse files
Adds 'Consume User Activation of Window' via WebDriver
Context: web-platform-tests/wpt#36727. Closes #8608.
1 parent 4c10dbb commit 743dd98

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

source

+39-1
Original file line numberDiff line numberDiff line change
@@ -76885,6 +76885,44 @@ partial interface <span id="NavigatorUserActivation-partial">Navigator</span> {
7688576885
<span>this</span>'s <span>relevant global object</span> has <span>transient activation</span>,
7688676886
and false otherwise.</p>
7688776887

76888+
76889+
<h4 id="user-activation-user-agent-automation">User agent automation</h4>
76890+
76891+
<p>For the purposes of user-agent automation and application testing, this specification defines
76892+
the following <span>extension command</span> for the <cite>Web Driver</cite> specification. It is
76893+
optional for a user agent to support the following <span>extension command</span>. <ref
76894+
spec=WEBDRIVER></p>
76895+
76896+
<table class="data">
76897+
<thead>
76898+
<tr>
76899+
<th>HTTP Method</th>
76900+
<th>URI Template</th>
76901+
</tr>
76902+
</thead>
76903+
<tbody>
76904+
<tr>
76905+
<td>`<code data-x="">POST</code>`</td>
76906+
<td><code data-x="">/session/{<var>session id</var>}/window/consume-user-activation</code></td>
76907+
</tr>
76908+
</tbody>
76909+
</table>
76910+
76911+
<p>The <span>remote end steps</span> are:</p>
76912+
76913+
<ol>
76914+
<li><p>Let <var>window</var> be <span data-x="webdriver-current-browsing-context">current
76915+
browsing context</span>'s <span>active window</span>.</p></li>
76916+
76917+
<li><p>Let <var>consume</var> be true if <var>window</var> has <span>transient activation</span>;
76918+
otherwise false.</p></li>
76919+
76920+
<li><p>If <var>consume</var> is true, then <span>consume user activation</span> of
76921+
<var>window</var>.</p></li>
76922+
76923+
<li><p>Return <span data-x="success-value">success</span> with data <var>consume</var>.</p></li>
76924+
</ol>
76925+
7688876926
</div>
7688976927

7689076928

@@ -133403,7 +133441,7 @@ INSERT INTERFACES HERE
133403133441
<dd><cite><a href="https://w3c.github.io/webcrypto/Overview.html">Web Cryptography API</a></cite>, D. Huigens. W3C.</dd>
133404133442

133405133443
<dt id="refsWEBDRIVER">[WEBDRIVER]</dt>
133406-
<dd><cite><a href="https://w3c.github.io/webdriver/">WebDriver</a></cite>. W3C</dd>
133444+
<dd><cite><a href="https://w3c.github.io/webdriver/">WebDriver</a></cite>, S. Stewart, D. Burns. W3C.</dd>
133407133445

133408133446
<dt id="refsWEBDRIVERBIDI">[WEBDRIVERBIDI]</dt>
133409133447
<dd><cite><a href="https://w3c.github.io/webdriver-bidi/">WebDriver BiDi</a></cite>. W3C</dd>

0 commit comments

Comments
 (0)