Skip to content

Commit 06d4e43

Browse files
Use actions queue when dispatching undo actions from "Release Actions" (w3c#1853)
SHA: 7d8beb9 Reason: push, by pull[bot] Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com.>
1 parent 6919298 commit 06d4e43

File tree

1 file changed

+50
-28
lines changed

1 file changed

+50
-28
lines changed

index.html

+50-28
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
.mdn .samsunginternet_android::before{background-image:url(https://www.w3.org/assets/logos/browser-logos/samsung-internet/samsung-internet.svg)}
177177
.mdn .webview_android::before{background-image:url(https://www.w3.org/assets/logos/browser-logos/android-webview/android-webview.png)}
178178
</style>
179-
<meta name="revision" content="0ac18fa957652f5efd2dc010d8a285cc08e89891">
179+
<meta name="revision" content="7d8beb949159e0f7d86a34410aedd3a1af3d4b0c">
180180
<meta name="description" content="WebDriver is a remote control interface
181181
that enables introspection and control of user agents.
182182
It provides a platform- and language-neutral wire protocol
@@ -272,15 +272,15 @@
272272
],
273273
"profile": "web-platform"
274274
},
275-
"gitRevision": "0ac18fa957652f5efd2dc010d8a285cc08e89891",
276-
"publishISODate": "2024-11-28T00:00:00.000Z",
277-
"generatedSubtitle": "W3C Editor's Draft 28 November 2024"
275+
"gitRevision": "7d8beb949159e0f7d86a34410aedd3a1af3d4b0c",
276+
"publishISODate": "2024-12-05T00:00:00.000Z",
277+
"generatedSubtitle": "W3C Editor's Draft 05 December 2024"
278278
}</script>
279279
<link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED"></head><body data-cite="WEBIDL CSSOM-VIEW GEOMETRY-1 fileapi HTML INFRA URL WEBIDL DOM FETCH" class="h-entry"><div class="head">
280280
<p class="logos"><a class="logo" href="https://www.w3.org/"><img crossorigin="" alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72">
281281
</a></p>
282282
<h1 id="title" class="title">WebDriver</h1>
283-
<p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">W3C Editor's Draft</a> <time class="dt-published" datetime="2024-11-28">28 November 2024</time></p>
283+
<p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">W3C Editor's Draft</a> <time class="dt-published" datetime="2024-12-05">05 December 2024</time></p>
284284
<details open="">
285285
<summary>More details about this document</summary>
286286
<dl>
@@ -9887,18 +9887,16 @@ <h1 id="title" class="title">WebDriver</h1>
98879887
grouped by <a href="#dfn-ticks" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-ticks-21">tick</a>, and then causes each action to be run at the
98889888
appropriate point in the sequence.
98899889

9890-
</p><p>To <dfn id="dfn-dispatch-actions" tabindex="0" aria-haspopup="dialog" data-dfn-type="dfn">dispatch actions</dfn> given <var>input
9891-
state</var>, <var>actions by tick</var>, <var>browsing
9892-
context</var>, and <var>actions options</var>:
9890+
</p><p>To <dfn id="dfn-wait-for-an-action-queue-token" tabindex="0" aria-haspopup="dialog" data-dfn-type="dfn">wait for an action queue token</dfn> given <var>input state</var>:
98939891

98949892
</p><ol class="algorithm">
98959893
<li><p>Let <var>token</var> be a new unique identifier.
98969894

9897-
</p></li><li><p>Enqueue <var>token</var> in <var>input state</var>'s <a href="#dfn-actions-queue" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-actions-queue-1">actions
9898-
queue</a>.
9895+
</p></li><li><p>Enqueue <var>token</var> in <var>input state</var>'s
9896+
<a href="#dfn-actions-queue" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-actions-queue-1">actions queue</a>.
98999897

99009898
</p></li><li><p>Wait for <var>token</var> to be the first item
9901-
in <var>input state</var>'s <a href="#dfn-actions-queue" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-actions-queue-2">actions queue</a>.
9899+
in <var>input state</var>'s <a href="#dfn-actions-queue" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-actions-queue-2">actions queue</a>.
99029900

99039901
</p><div class="note" role="note" id="issue-container-generatedID-50"><div role="heading" class="note-title marker" id="h-note-50" aria-level="4"><span>Note</span></div><aside class="">
99049902
<p>This ensures that only one set of actions can be run at a time,
@@ -9908,13 +9906,21 @@ <h1 id="title" class="title">WebDriver</h1>
99089906
session types can allow running multiple commands in parallel, in
99099907
which case this is necessary to ensure sequential access.
99109908
</p></aside></div>
9909+
</li></ol>
99119910

9912-
</li><li><p>Let <var>actions result</var> be the result of <a href="#dfn-dispatch-actions-inner" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-dispatch-actions-inner-1">dispatch
9913-
actions inner</a> with <var>input state</var>, <var>actions by
9914-
tick</var>, <var>browsing context</var>, and <var>actions options</var>.
9911+
<p>To <dfn id="dfn-dispatch-actions" tabindex="0" aria-haspopup="dialog" data-dfn-type="dfn">dispatch actions</dfn> given <var>input
9912+
state</var>, <var>actions by tick</var>, <var>browsing
9913+
context</var>, and <var>actions options</var>:
9914+
9915+
</p><ol class="algorithm">
9916+
<li><p><a href="#dfn-wait-for-an-action-queue-token" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-wait-for-an-action-queue-token-1">Wait for an action queue token</a> with <var>input state</var>.
9917+
9918+
</p></li><li><p>Let <var>actions result</var> be the result of
9919+
<a href="#dfn-dispatch-actions-inner" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-dispatch-actions-inner-1">dispatch actions inner</a> with <var>input state</var>, <var>actions by
9920+
tick</var>, <var>browsing context</var>, and <var>actions options</var>.
99159921

99169922
</p></li><li><p>Dequeue <var>input state</var>'s <a href="#dfn-actions-queue" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-actions-queue-3">actions queue</a>.
9917-
</p><p>Assert: this returns <var>token</var>
9923+
</p><p>Assert: this returns <var>token</var>
99189924

99199925
</p></li><li><p>Return <var>actions result</var>.
99209926
</p></li></ol>
@@ -11087,26 +11093,26 @@ <h1 id="title" class="title">WebDriver</h1>
1108711093
is <a href="#dfn-no-longer-open" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-no-longer-open-52">no longer open</a>, return <a href="#dfn-error" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-error-249">error</a> with <a href="#dfn-error-code" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-error-code-224">error
1108811094
code</a> <a href="#dfn-no-such-window" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-no-such-window-53">no such window</a>.
1108911095

11090-
</p></li><li><p>Let <var>input state</var> be the result of <a href="#dfn-get-the-input-state" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-get-the-input-state-4">get the
11091-
input state</a> with <a href="#dfn-sessions" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-sessions-38">session</a> and <a href="#dfn-current-top-level-browsing-context" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-current-top-level-browsing-context-65">current
11092-
top-level browsing context</a>.
11096+
</p></li><li><p>Let <var>input state</var> be the result of <a href="#dfn-get-the-input-state" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-get-the-input-state-4">get the input state</a>
11097+
with <a href="#dfn-sessions" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-sessions-38">session</a> and <a href="#dfn-current-top-level-browsing-context" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-current-top-level-browsing-context-65">current top-level browsing context</a>.
1109311098

1109411099
</p></li><li><p>Let <var>actions options</var> be a new <a href="#dfn-actions-options" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-actions-options-6">actions options</a>
1109511100
with the <a href="#dfn-is-element-origin" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-is-element-origin-7">is element origin</a> steps set to <a href="#dfn-represents-a-web-element" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-represents-a-web-element-9">represents a web
1109611101
element</a>, and the <a href="#dfn-get-element-origin" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-get-element-origin-6">get element origin</a> steps set
1109711102
to <a href="#dfn-get-a-webelement-origin" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-get-a-webelement-origin-5">get a WebElement origin</a>.
1109811103

11104+
</p></li><li><p><a href="#dfn-wait-for-an-action-queue-token" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-wait-for-an-action-queue-token-2">Wait for an action queue token</a> with <var>input state</var>.
11105+
1109911106
</p></li><li><p>Let <var>undo actions</var> be <var>input
11100-
state</var>'s <a href="#dfn-input-cancel-list" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-input-cancel-list-5">input cancel list</a> in reverse order.
11107+
state</var>'s <a href="#dfn-input-cancel-list" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-input-cancel-list-5">input cancel list</a> in reverse order.
11108+
11109+
</p></li><li><p><a href="#dfn-try" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-try-120">Try</a> to <a href="#dfn-dispatch-actions" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-dispatch-actions-4">dispatch actions</a> with <var>input state</var>,
11110+
<var>undo actions</var>, <a href="#dfn-current-browsing-context" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-current-browsing-context-86">current browsing context</a>,
11111+
and <var>actions options</var>.
1110111112

11102-
</p></li><li><p><a href="#dfn-try" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-try-120">Try</a> to <a href="#dfn-dispatch-tick-actions" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-dispatch-tick-actions-4">dispatch tick actions</a> with arguments
11103-
<var>undo
11104-
actions</var>, <code>0</code>,<var>session</var>'s <a href="#dfn-current-browsing-context" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-current-browsing-context-86">current
11105-
browsing context</a>, and <a href="#dfn-actions-options" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-actions-options-7">actions options</a>.
1110611113

1110711114
</p></li><li><p><a href="#dfn-reset-the-input-state" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-reset-the-input-state-1">Reset the input state</a> with <var>session</var>
11108-
and <var>session</var>'s <a href="#dfn-current-top-level-browsing-context" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-current-top-level-browsing-context-66">current top-level browsing
11109-
context</a>.
11115+
and <var>session</var>'s <a href="#dfn-current-top-level-browsing-context" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-current-top-level-browsing-context-66">current top-level browsing context</a>.
1111011116

1111111117
</p></li><li><p>Return <a href="#dfn-success" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-success-116">success</a> with data <a href="#dfn-null" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-null-74"><code>null</code></a>.
1111211118
</p></li></ol>
@@ -13919,6 +13925,8 @@ <h1 id="title" class="title">WebDriver</h1>
1391913925
<span class="print-only">§E.</span></li><li>
1392013926
<a class="index-term" href="#dfn-wai-aria-role">WAI-ARIA role</a>
1392113927
<span class="print-only">§E.</span></li><li>
13928+
<a class="index-term" href="#dfn-wait-for-an-action-queue-token">wait for an action queue token</a>
13929+
<span class="print-only">§15.6</span></li><li>
1392213930
<a class="index-term" href="#dfn-wait-for-navigation-to-complete">wait for navigation to complete</a>
1392313931
<span class="print-only">§10.</span></li><li>
1392413932
<a class="index-term" href="#dfn-asynchronously-wait">Waiting asynchronously</a>
@@ -19847,7 +19855,7 @@ <h1 id="title" class="title">WebDriver</h1>
1984719855
</li><li>
1984819856
<a href="#ref-for-dfn-actions-options-5" title="§ 15.7 Perform Actions">§ 15.7 Perform Actions</a>
1984919857
</li><li>
19850-
<a href="#ref-for-dfn-actions-options-6" title="§ 15.8 Release Actions">§ 15.8 Release Actions</a> <a href="#ref-for-dfn-actions-options-7" title="Reference 2">(2)</a>
19858+
<a href="#ref-for-dfn-actions-options-6" title="§ 15.8 Release Actions">§ 15.8 Release Actions</a>
1985119859
</li>
1985219860
</ul>
1985319861
</div><div class="dfn-panel" hidden="" role="dialog" aria-modal="true" id="dfn-panel-for-dfn-is-element-origin" aria-label="Links in this document to definition: is element origin">
@@ -20587,6 +20595,20 @@ <h1 id="title" class="title">WebDriver</h1>
2058720595
<li>
2058820596
<a href="#ref-for-dfn-process-a-pointer-move-action-1" title="§ 15.5 Processing actions">§ 15.5 Processing actions</a>
2058920597
</li>
20598+
</ul>
20599+
</div><div class="dfn-panel" hidden="" role="dialog" aria-modal="true" id="dfn-panel-for-dfn-wait-for-an-action-queue-token" aria-label="Links in this document to definition: wait for an action queue token">
20600+
<span class="caret"></span>
20601+
<div>
20602+
<a class="self-link" href="#dfn-wait-for-an-action-queue-token" aria-label="Permalink for definition: wait for an action queue token. Activate to close this dialog.">Permalink</a>
20603+
20604+
</div>
20605+
<p><b>Referenced in:</b></p>
20606+
<ul>
20607+
<li>
20608+
<a href="#ref-for-dfn-wait-for-an-action-queue-token-1" title="§ 15.6 Dispatching actions">§ 15.6 Dispatching actions</a>
20609+
</li><li>
20610+
<a href="#ref-for-dfn-wait-for-an-action-queue-token-2" title="§ 15.8 Release Actions">§ 15.8 Release Actions</a>
20611+
</li>
2059020612
</ul>
2059120613
</div><div class="dfn-panel" hidden="" role="dialog" aria-modal="true" id="dfn-panel-for-dfn-dispatch-actions" aria-label="Links in this document to definition: dispatch actions">
2059220614
<span class="caret"></span>
@@ -20600,6 +20622,8 @@ <h1 id="title" class="title">WebDriver</h1>
2060020622
<a href="#ref-for-dfn-dispatch-actions-1" title="§ 15.6 Dispatching actions">§ 15.6 Dispatching actions</a> <a href="#ref-for-dfn-dispatch-actions-2" title="Reference 2">(2)</a>
2060120623
</li><li>
2060220624
<a href="#ref-for-dfn-dispatch-actions-3" title="§ 15.7 Perform Actions">§ 15.7 Perform Actions</a>
20625+
</li><li>
20626+
<a href="#ref-for-dfn-dispatch-actions-4" title="§ 15.8 Release Actions">§ 15.8 Release Actions</a>
2060320627
</li>
2060420628
</ul>
2060520629
</div><div class="dfn-panel" hidden="" role="dialog" aria-modal="true" id="dfn-panel-for-dfn-dispatch-actions-inner" aria-label="Links in this document to definition: dispatch actions inner">
@@ -20636,8 +20660,6 @@ <h1 id="title" class="title">WebDriver</h1>
2063620660
<ul>
2063720661
<li>
2063820662
<a href="#ref-for-dfn-dispatch-tick-actions-1" title="§ 15.6 Dispatching actions">§ 15.6 Dispatching actions</a> <a href="#ref-for-dfn-dispatch-tick-actions-2" title="Reference 2">(2)</a> <a href="#ref-for-dfn-dispatch-tick-actions-3" title="Reference 3">(3)</a>
20639-
</li><li>
20640-
<a href="#ref-for-dfn-dispatch-tick-actions-4" title="§ 15.8 Release Actions">§ 15.8 Release Actions</a>
2064120663
</li>
2064220664
</ul>
2064320665
</div><div class="dfn-panel" hidden="" role="dialog" aria-modal="true" id="dfn-panel-for-dfn-dispatch-a-list-of-actions" aria-label="Links in this document to definition: dispatch a list of actions">

0 commit comments

Comments
 (0)