From a3ea12141ec9e3adda2dc3a6ef5913eee9c1e2a9 Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Mon, 12 Dec 2022 14:38:40 +1100 Subject: [PATCH] Adds 'Consume User Activation of Window' via WebDriver --- source | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/source b/source index e770453bb40..b1d522b120a 100644 --- a/source +++ b/source @@ -4341,6 +4341,23 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute + +
WebDriver
+ +
+

The following terms are defined in WebDriver:

+ + +
+
WebDriver BiDi
@@ -76022,6 +76039,50 @@ partial interface Navigator { +

Automated Testing

+ +

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

+ +
Consume user activation of Window
+ + + + + + +
HTTP Method + URI Template + Command +
POST + /session/{session id}/window/consume-user-activation + Consume user activation of Window +
+ +

The remote end steps are: + +

    +
  1. If the top-level browsing context has been removed, return error with error code no such window. + +

  2. Handle any user prompts and return its value if it is an error. + +

  3. Let window be top-level browsing context's active + window. + +

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

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

  6. Return success with data consume. +

Activation behavior of elements

@@ -131604,6 +131665,9 @@ INSERT INTERFACES HERE
[WEBCRYPTO]
Web Cryptography API, D. Huigens. W3C.
+
[WEBDRIVER]
+
WebDriver, S. Stewart, D. Burns. W3C
+
[WEBDRIVERBIDI]
WebDriver BiDi. W3C