Skip to content

Commit 7510007

Browse files
Allow file prompt type (#1884)
SHA: 3055808 Reason: push, by sadym-chromium Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent e50a58e commit 7510007

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

index.html

Lines changed: 16 additions & 13 deletions
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="a67669c5b4bfa4dd3fde8e07ab7ee1ed142dc74c">
179+
<meta name="revision" content="30558080130e6b9e7644c3e0f75fc6a6cef304b1">
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": "a67669c5b4bfa4dd3fde8e07ab7ee1ed142dc74c",
276-
"publishISODate": "2025-02-10T00:00:00.000Z",
277-
"generatedSubtitle": "W3C Editor's Draft 10 February 2025"
275+
"gitRevision": "30558080130e6b9e7644c3e0f75fc6a6cef304b1",
276+
"publishISODate": "2025-03-06T00:00:00.000Z",
277+
"generatedSubtitle": "W3C Editor's Draft 06 March 2025"
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="2025-02-10">10 February 2025</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="2025-03-06">06 March 2025</time></p>
284284
<details open="">
285285
<summary>More details about this document</summary>
286286
<dl>
@@ -11241,7 +11241,7 @@ <h1 id="title" class="title">WebDriver</h1>
1124111241

1124211242
<p>The <dfn id="dfn-valid-prompt-types" tabindex="0" aria-haspopup="dialog" data-dfn-type="dfn">valid prompt types</dfn> are «"<code>alert</code>",
1124311243
"<code>beforeUnload</code>", "<code>confirm</code>",
11244-
"<code>default</code>", "<code>prompt</code>"».
11244+
"<code>default</code>", "<code>file</code>", "<code>prompt</code>"».
1124511245

1124611246
</p><div class="note" role="note" id="issue-container-generatedID-57"><div role="heading" class="note-title marker" id="h-note-57" aria-level="3"><span>Note</span></div><p class="">The "<code>default</code>" type represents a fallback
1124711247
when no specific handler is defined for a given prompt type, including
@@ -11257,6 +11257,9 @@ <h1 id="title" class="title">WebDriver</h1>
1125711257
other protocols isn't expected to change the user prompt handling as a
1125811258
side effect.
1125911259

11260+
</p></div><div class="note" role="note" id="issue-container-generatedID-58"><div role="heading" class="note-title marker" id="h-note-58" aria-level="3"><span>Note</span></div><p class="">The "<code>file</code>" prompt type is respected only in
11261+
[<cite><a class="bibref" data-link-type="biblio" href="#bib-webdriver-bidi" title="WebDriver BiDi">WebDriver-BiDi</a></cite>] sessions.
11262+
1126011263
</p></div><p>To <dfn id="dfn-deserialize-as-an-unhandled-prompt-behavior" tabindex="0" aria-haspopup="dialog" data-dfn-type="dfn">deserialize as an unhandled prompt behavior</dfn> given
1126111264
argument <var>value</var>:
1126211265

@@ -11271,7 +11274,7 @@ <h1 id="title" class="title">WebDriver</h1>
1127111274
does not also support [<cite><a class="bibref" data-link-type="biblio" href="#bib-webdriver-bidi" title="WebDriver BiDi">WebDriver-BiDi</a></cite>] may return <a href="#dfn-error" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-error-251">error</a>
1127211275
with <a href="#dfn-error-code" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-error-code-225">error code</a> <a href="#dfn-invalid-argument" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-invalid-argument-99">invalid argument</a>.
1127311276

11274-
</p><div class="note" role="note" id="issue-container-generatedID-58"><div role="heading" class="note-title marker" id="h-note-58" aria-level="3"><span>Note</span></div><p class="">This is to avoid [<cite><a class="bibref" data-link-type="biblio" href="#bib-webdriver-bidi" title="WebDriver BiDi">WebDriver-BiDi</a></cite>] monkey-patching
11277+
</p><div class="note" role="note" id="issue-container-generatedID-59"><div role="heading" class="note-title marker" id="h-note-59" aria-level="3"><span>Note</span></div><p class="">This is to avoid [<cite><a class="bibref" data-link-type="biblio" href="#bib-webdriver-bidi" title="WebDriver BiDi">WebDriver-BiDi</a></cite>] monkey-patching
1127511278
the current spec.
1127611279

1127711280
</p></div></li><li><p>Let <var>is string value</var> be false.
@@ -11346,7 +11349,7 @@ <h1 id="title" class="title">WebDriver</h1>
1134611349
</li><li>Return true</li>
1134711350
</ol>
1134811351

11349-
<div class="note" role="note" id="issue-container-generatedID-59"><div role="heading" class="note-title marker" id="h-note-59" aria-level="3"><span>Note</span></div><p class="">This does not check the <var>requested prompt
11352+
<div class="note" role="note" id="issue-container-generatedID-60"><div role="heading" class="note-title marker" id="h-note-60" aria-level="3"><span>Note</span></div><p class="">This does not check the <var>requested prompt
1135011353
handler</var>'s <a data-link-type="dfn|abstract-op" href="#dfn-notify" class="internalDFN" id="ref-for-dfn-notify-3">notify</a> matches
1135111354
the <a data-link-type="dfn|abstract-op" href="#dfn-handler" class="internalDFN" id="ref-for-dfn-handler-5">handler</a>, because the <a data-link-type="dfn|abstract-op" href="#dfn-notify" class="internalDFN" id="ref-for-dfn-notify-4">notify</a> component only affects the <a data-link-type="dfn|abstract-op" href="#dfn-http-session" class="internalDFN" id="ref-for-dfn-http-session-8">HTTP session</a>, if any.
1135211355

@@ -11505,7 +11508,7 @@ <h1 id="title" class="title">WebDriver</h1>
1150511508
</tr>
1150611509
</tbody></table>
1150711510

11508-
<div class="note" role="note" id="issue-container-generatedID-60"><div role="heading" class="note-title marker" id="h-note-60" aria-level="4"><span>Note</span></div><p class="">
11511+
<div class="note" role="note" id="issue-container-generatedID-61"><div role="heading" class="note-title marker" id="h-note-61" aria-level="4"><span>Note</span></div><p class="">
1150911512
The <a href="#dfn-dismiss-alert" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-dismiss-alert-2">Dismiss Alert</a> <a href="#dfn-commands" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-commands-58">command</a>
1151011513
<a href="#dfn-dismissed" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-dismissed-4">dismisses</a> a <a href="#dfn-simple-dialog" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-simple-dialog-6">simple dialog</a>
1151111514
if <a data-lt="current user prompt" href="#dfn-current-user-prompt" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-current-user-prompt-8">present</a>.
@@ -11608,7 +11611,7 @@ <h1 id="title" class="title">WebDriver</h1>
1160811611
</tr>
1160911612
</tbody></table>
1161011613

11611-
<div class="note" role="note" id="issue-container-generatedID-61"><div role="heading" class="note-title marker" id="h-note-61" aria-level="4"><span>Note</span></div><p class="">
11614+
<div class="note" role="note" id="issue-container-generatedID-62"><div role="heading" class="note-title marker" id="h-note-62" aria-level="4"><span>Note</span></div><p class="">
1161211615
The <a href="#dfn-send-alert-text" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-send-alert-text-2">Send Alert Text</a> <a href="#dfn-commands" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-commands-59">command</a>
1161311616
sets the text field of a <a href="#dfn-window-prompt" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-window-prompt-1">window.<code>prompt</code></a>
1161411617
<a href="#dfn-user-prompts" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-user-prompts-11">user prompt</a> to the given value.
@@ -11806,7 +11809,7 @@ <h1 id="title" class="title">WebDriver</h1>
1180611809
</td></tr>
1180711810
</tbody></table>
1180811811

11809-
<div class="note" role="note" id="issue-container-generatedID-62"><div role="heading" class="note-title marker" id="h-note-62" aria-level="4"><span>Note</span></div><p class="">
11812+
<div class="note" role="note" id="issue-container-generatedID-63"><div role="heading" class="note-title marker" id="h-note-63" aria-level="4"><span>Note</span></div><p class="">
1181011813
The <a href="#dfn-take-element-screenshot" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-take-element-screenshot-3">Take Element Screenshot</a> <a href="#dfn-commands" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-commands-62">command</a>
1181111814
takes a screenshot of the visible region encompassed
1181211815
by the <a href="#dfn-bounding-rectangle" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-bounding-rectangle-7">bounding rectangle</a> of an <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-element" id="ref-for-index-term-element-46">element</a>.
@@ -12015,7 +12018,7 @@ <h1 id="title" class="title">WebDriver</h1>
1201512018
not a <a href="#dfn-number" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-number-23">Number</a>, or is less than <code>(2.54 / 72)</code>, return <a href="#dfn-error" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-error-283">error</a>
1201612019
with <a href="#dfn-error-code" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-error-code-254">error code</a> <a href="#dfn-invalid-argument" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-invalid-argument-113">invalid argument</a>.
1201712020

12018-
</p><div class="note" role="note" id="issue-container-generatedID-63"><div role="heading" class="note-title marker" id="h-note-63" aria-level="4"><span>Note</span></div><p class="">The minimum page size is <code>1</code> point, which is
12021+
</p><div class="note" role="note" id="issue-container-generatedID-64"><div role="heading" class="note-title marker" id="h-note-64" aria-level="4"><span>Note</span></div><p class="">The minimum page size is <code>1</code> point, which is
1201912022
<code>(2.54 / 72)</code> as per <a href="#dfn-absolute-lengths" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-absolute-lengths-1">absolute lengths</a>.
1202012023

1202112024
</p></div></li><li><p>Let <var>margin</var> be the result of <a href="#dfn-getting-the-property-with-default" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-getting-the-property-with-default-7">getting a property
@@ -14315,7 +14318,7 @@ <h1 id="title" class="title">WebDriver</h1>
1431514318
</dd><dt id="bib-wai-aria-1.2">[wai-aria-1.2]</dt><dd>
1431614319
<a href="https://www.w3.org/TR/wai-aria-1.2/"><cite>Accessible Rich Internet Applications (WAI-ARIA) 1.2</cite></a>. Joanmarie Diggs; James Nurthen; Michael Cooper; Carolyn MacLeod. W3C. 6 June 2023. W3C Recommendation. URL: <a href="https://www.w3.org/TR/wai-aria-1.2/">https://www.w3.org/TR/wai-aria-1.2/</a>
1431714320
</dd><dt id="bib-webdriver-bidi">[WebDriver-BiDi]</dt><dd>
14318-
<a href="https://www.w3.org/TR/webdriver-bidi/"><cite>WebDriver BiDi</cite></a>. James Graham; Alex Rudenko; Maksim Sadym. W3C. 31 January 2025. W3C Working Draft. URL: <a href="https://www.w3.org/TR/webdriver-bidi/">https://www.w3.org/TR/webdriver-bidi/</a>
14321+
<a href="https://www.w3.org/TR/webdriver-bidi/"><cite>WebDriver BiDi</cite></a>. James Graham; Alex Rudenko; Maksim Sadym. W3C. 5 March 2025. W3C Working Draft. URL: <a href="https://www.w3.org/TR/webdriver-bidi/">https://www.w3.org/TR/webdriver-bidi/</a>
1431914322
</dd><dt id="bib-webidl">[WEBIDL]</dt><dd>
1432014323
<a href="https://webidl.spec.whatwg.org/"><cite>Web IDL Standard</cite></a>. Edgar Chen; Timothy Gu. WHATWG. Living Standard. URL: <a href="https://webidl.spec.whatwg.org/">https://webidl.spec.whatwg.org/</a>
1432114324
</dd><dt id="bib-xpath">[XPATH]</dt><dd>

0 commit comments

Comments
 (0)