From c123c97b4b5eb43270b400881e94871e2a15a43a Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Tue, 15 Nov 2022 15:26:27 +1300 Subject: [PATCH 1/6] Add consume user activation of Window --- index.html | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index c0627aa4..d65e2452 100644 --- a/index.html +++ b/index.html @@ -4039,8 +4039,34 @@

Fullscreen Window

context. - +
+

Consume user activation of Window

+ + + + + + + + + + +
HTTP MethodURI Template
POST/session/{session id}/window/consume-user-activation
+ +

The remote end steps are: + +

    +
  1. If the current top-level browsing context is no longer open, + return error with error code no such window. + +

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

  3. Consume user activation of the current browsing context's [=active window=]. + +

  4. Return success. +

+
From 1ac936bb7f57ea3077a50d3c7454cb7c3438433a Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Tue, 15 Nov 2022 16:40:24 +1300 Subject: [PATCH 2/6] add to table of endpoints --- index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index d65e2452..9237b7da 100644 --- a/index.html +++ b/index.html @@ -812,6 +812,12 @@

Endpoints

Fullscreen Window + + POST + /session/{session id}/window/consume-user-activation + [=Consume user activation of Window=] + + GET /session/{session id}/element/active @@ -4041,7 +4047,7 @@

Fullscreen Window

-

Consume user activation of Window

+

Consume user activation of Window

From 71306e9ec87dd14ff718196ee0007cb2feb8762e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Tue, 15 Nov 2022 17:07:41 +1300 Subject: [PATCH 3/6] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 9237b7da..6408cb60 100644 --- a/index.html +++ b/index.html @@ -4072,7 +4072,7 @@

Consume user activation of Window

  • Return success. - +

    From da13bbd68edfc2c33c49127ac5a4685547a6e8cc Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Wed, 16 Nov 2022 13:19:26 +1300 Subject: [PATCH 4/6] Report if activation was consumed --- index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 6408cb60..41376949 100644 --- a/index.html +++ b/index.html @@ -4068,9 +4068,13 @@

    Consume user activation of Window

  • Handle any user prompts and return its value if it is an error. -

  • Consume user activation of the current browsing context's [=active window=]. +

  • Let |context| be current browsing context. -

  • Return success. +

  • Let |consume| be true if |context| has [=transient activation=] or false otherwise. + +

  • If |consume| is true, [=consume user activation=] of the |context|'s [=active window=]. + +

  • Return success with data |consume|.

  • From 71efd6a9aa5e2b0a9328ae9aef67d9fee9f0992a Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Wed, 16 Nov 2022 16:02:25 +1300 Subject: [PATCH 5/6] use window --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 41376949..99ae8539 100644 --- a/index.html +++ b/index.html @@ -4068,11 +4068,11 @@

    Consume user activation of Window

  • Handle any user prompts and return its value if it is an error. -

  • Let |context| be current browsing context. +

  • Let |window| be current browsing context's [=active window=]. -

  • Let |consume| be true if |context| has [=transient activation=] or false otherwise. +

  • Let |consume| be true if |window| has [=transient activation=] or false otherwise. -

  • If |consume| is true, [=consume user activation=] of the |context|'s [=active window=]. +

  • If |consume| is true, [=consume user activation=] of |window|.

  • Return success with data |consume|. From d4e8281727bc75bf980079ef98d1f2dfbad08900 Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Wed, 16 Nov 2022 16:24:47 +1300 Subject: [PATCH 6/6] explicit data-cite --- index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 99ae8539..c28851f6 100644 --- a/index.html +++ b/index.html @@ -4068,7 +4068,12 @@

    Consume user activation of Window

  • Handle any user prompts and return its value if it is an error. -

  • Let |window| be current browsing context's [=active window=]. + +

  • Let |window| be current browsing context's active window.

  • Let |consume| be true if |window| has [=transient activation=] or false otherwise.