From c27903e773c1b980ee76969983de600a3fc5f0eb Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Mon, 12 Dec 2022 14:38:40 +1100 Subject: [PATCH 1/2] Adds 'Consume User Activation of Window' via WebDriver --- source | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/source b/source index fc4e4b22353..99fe9a155f2 100644 --- a/source +++ b/source @@ -76391,6 +76391,38 @@ partial interface Navigator { +

User agent automation

+ +

For the purposes of user-agent automation and application testing, this specification defines + the following extension command for the Web Driver specification. It is + optional for a user agent to support the following extension command.

+ + + + + + +
HTTP Method + URI Template +
`POST` + /session/{session id}/window/consume-user-activation +
+ +

The remote end steps are: + +

    +
  1. Let window be current + browsing context's active window.

  2. + +
  3. Let consume be true if window has transient activation + or false otherwise.

  4. + +
  5. If consume is true, consume user activation of + window.

  6. + +
  7. Return success with data consume.

  8. +

Activation behavior of elements

@@ -132900,7 +132932,7 @@ INSERT INTERFACES HERE
Web Cryptography API, D. Huigens. W3C.
[WEBDRIVER]
-
WebDriver. W3C
+
WebDriver, S. Stewart, D. Burns. W3C.
[WEBDRIVERBIDI]
WebDriver BiDi. W3C
From f8c19bd74a46efd688a66edf57eba429b3ee487c Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Tue, 7 Mar 2023 11:11:12 -0800 Subject: [PATCH 2/2] nits --- source | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/source b/source index 99fe9a155f2..128b50aec58 100644 --- a/source +++ b/source @@ -76389,7 +76389,6 @@ partial interface Navigator { this's relevant global object has transient activation, and false otherwise.

-

User agent automation

@@ -76401,29 +76400,36 @@ partial interface Navigator { - + + + - + + +
HTTP Method - URI Template + HTTP MethodURI Template
`POST` - /session/{session id}/window/consume-user-activation + `POST`/session/{session id}/window/consume-user-activation
-

The remote end steps are: +

The remote end steps are:

  1. Let window be current browsing context's active window.

  2. -
  3. Let consume be true if window has transient activation - or false otherwise.

  4. +
  5. Let consume be true if window has transient activation; + otherwise false.

  6. -
  7. If consume is true, consume user activation of +

  8. If consume is true, then consume user activation of window.

  9. Return success with data consume.

+ + +

Activation behavior of elements

Certain elements in HTML have an activation behavior, which means that the user