Skip to content

Commit b50b488

Browse files
Extend browsingContext.DownloadWillBegin with suggestedFilename
... and rename "WebDriver navigation status" to "WebDriver BiDi navigation status" to align with HTML spec. # Conflicts: # index.bs
1 parent 682f673 commit b50b488

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

index.bs

+19-3
Original file line numberDiff line numberDiff line change
@@ -2913,6 +2913,9 @@ The progress of navigation is communicated using an immutable
29132913

29142914
<dt><dfn export for="WebDriver BiDi navigation status" id="navigation-status-url">url</dfn></dt>
29152915
<dd>The URL which is being loaded in the navigation</dd>
2916+
2917+
<dt><dfn export for="WebDriver BiDi navigation status" id="navigation-status-suggested-filename">suggestedFilename</dfn></dt>
2918+
<dd>An optional suggested filename. Provided if the navigation is a download</dd>
29162919
</dl>
29172920

29182921
### Definition ### {#module-browsingContext-definition}
@@ -5267,8 +5270,13 @@ complete</dfn> steps given |navigable| and |navigation status|:
52675270
<pre class="cddl local-cddl">
52685271
browsingContext.DownloadWillBegin = (
52695272
method: "browsingContext.downloadWillBegin",
5270-
params: browsingContext.NavigationInfo
5273+
params: browsingContext.DownloadWillBeginParams
52715274
)
5275+
5276+
browsingContext.DownloadWillBeginParams = {
5277+
suggestedFilename: text,
5278+
browsingContext.NavigationInfo
5279+
}
52725280
</pre>
52735281
</dd>
52745282
</dl>
@@ -5277,8 +5285,16 @@ complete</dfn> steps given |navigable| and |navigation status|:
52775285
The [=remote end event trigger=] is the <dfn export>WebDriver BiDi download
52785286
started</dfn> steps given |navigable| and |navigation status|:
52795287

5280-
1. Let |params| be the result of [=get the navigation info=] given |navigable|
5281-
and |navigation status|.
5288+
1. Let |navigation info| be the result of [=get the navigation info=] given |navigable| and
5289+
|navigation status|.
5290+
5291+
1. Let |params| be a [=/map=] matching the <code>browsingContext.DownloadWillBeginParams</code>
5292+
production, with the <code>context</code> field set to |navigation info|["<code>context</code>"],
5293+
the <code>navigation</code> field set to |navigation info|["<code>navigation</code>"], the
5294+
<code>timestamp</code> field set to |navigation info|["<code>timestamp</code>"], the
5295+
<code>url</code> field set to |navigation info|["<code>url</code>"] and
5296+
<code>suggestedFilename</code> field set to |navigation status|'s
5297+
<code>suggestedFilename</code>.
52825298

52835299
1. Let |body| be a [=/map=] matching the
52845300
<code>browsingContext.DownloadWillBegin</code> production, with the

0 commit comments

Comments
 (0)