@@ -2913,6 +2913,9 @@ The progress of navigation is communicated using an immutable
2913
2913
2914
2914
<dt> <dfn export for="WebDriver BiDi navigation status" id="navigation-status-url">url</dfn> </dt>
2915
2915
<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>
2916
2919
</dl>
2917
2920
2918
2921
### Definition ### {#module-browsingContext-definition}
@@ -5267,8 +5270,13 @@ complete</dfn> steps given |navigable| and |navigation status|:
5267
5270
<pre class="cddl local-cddl">
5268
5271
browsingContext.DownloadWillBegin = (
5269
5272
method: "browsingContext.downloadWillBegin",
5270
- params: browsingContext.NavigationInfo
5273
+ params: browsingContext.DownloadWillBeginParams
5271
5274
)
5275
+
5276
+ browsingContext.DownloadWillBeginParams = {
5277
+ suggestedFilename: text,
5278
+ browsingContext.NavigationInfo
5279
+ }
5272
5280
</pre>
5273
5281
</dd>
5274
5282
</dl>
@@ -5277,8 +5285,16 @@ complete</dfn> steps given |navigable| and |navigation status|:
5277
5285
The [=remote end event trigger=] is the <dfn export>WebDriver BiDi download
5278
5286
started</dfn> steps given |navigable| and |navigation status|:
5279
5287
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> .
5282
5298
5283
5299
1. Let |body| be a [=/map=] matching the
5284
5300
<code> browsingContext.DownloadWillBegin</code> production, with the
0 commit comments