From b1a5a4d281b86114b14e75178a6c954eb335e0f7 Mon Sep 17 00:00:00 2001 From: Henrik Skupin Date: Wed, 30 Oct 2024 10:08:53 +0100 Subject: [PATCH] Use actions queue when dispatching undo actions from "Release Actions" --- index.html | 46 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 00450b39..7342723e 100644 --- a/index.html +++ b/index.html @@ -10314,6 +10314,33 @@

Release Actions

as if the state was released by an explicit series of actions. It also clears all the internal state of the virtual devices. +

To get undo actions given input + state: + +

    +
  1. Let token be a new unique identifier. + +

  2. Enqueue token in input state's actions + queue. + +

  3. Wait for token to be the first item + in input state's actions queue. + +

    + +
  4. Let undo actions be input + state's input cancel list in reverse order. + +

  5. Return undo actions. +

+

The remote end steps, given session, URL variables and parameters are: @@ -10323,25 +10350,24 @@

Release Actions

code no such window.
  • Let input state be the result of get the - input state with session and current - top-level browsing context. + input state with session and current + top-level browsing context.

  • Let actions options be a new actions options with the is element origin steps set to represents a web element, and the get element origin steps set to get a WebElement origin. -

  • Let undo actions be input - state's input cancel list in reverse order. +

  • Let undo actions be the result of get undo actions. -

  • Try to dispatch tick actions with arguments - undo - actions, 0,session's current - browsing context, and actions options. +

  • Dispatch actions with input state, + undo actions, current browsing context, + and actions options. If this results in an error + return that error.

  • Reset the input state with session - and session's current top-level browsing - context. + and session's current top-level browsing + context.

  • Return success with data null.