@@ -5592,6 +5592,40 @@ The [=remote end event trigger=] is the
5592
5592
5593
5593
</div>
5594
5594
5595
+ <div algorithm>
5596
+ The [=remote end event trigger=] is the <dfn export>WebDriver BiDi download
5597
+ started</dfn> steps given |navigable| and |navigation status|:
5598
+
5599
+ Issue: TODO: Removed after HTML spec switched to [=WebDriver BiDi download will begin=] .
5600
+
5601
+ 1. Let |navigation info| be the result of [=get the navigation info=] given |navigable| and
5602
+ |navigation status|.
5603
+
5604
+ 1. Let |params| be a [=/map=] matching the <code> browsingContext.DownloadWillBeginParams</code>
5605
+ production, with the <code> context</code> field set to |navigation info|["<code>context</code>"] ,
5606
+ the <code> navigation</code> field set to |navigation info|["<code>navigation</code>"] , the
5607
+ <code> timestamp</code> field set to |navigation info|["<code>timestamp</code>"] , the
5608
+ <code> url</code> field set to |navigation info|["<code>url</code>"] and
5609
+ <code> suggestedFilename</code> field set to |navigation status|'s
5610
+ <code> suggestedFilename</code> .
5611
+
5612
+ 1. Let |body| be a [=/map=] matching the
5613
+ <code> browsingContext.DownloadWillBegin</code> production, with the
5614
+ <code> params</code> field set to |params|.
5615
+
5616
+ 1. Let |navigation id| be |navigation status|'s id.
5617
+
5618
+ 1. Let |related navigables| be a [=/set=] containing |navigable|.
5619
+
5620
+ 1. [=Resume=] with "<code> download started</code> ", |navigation id|, and |navigation status|.
5621
+
5622
+ 1. For each |session| in the [=set of sessions for which an event is enabled=]
5623
+ given "<code> browsingContext.downloadWillBegin</code> " and |related navigables|:
5624
+
5625
+ 1. [=Emit an event=] with |session| and |body|.
5626
+
5627
+ </div>
5628
+
5595
5629
#### The browsingContext.downloadEnd Event #### {#event-browsingContext-downloadEnd}
5596
5630
5597
5631
<dl>
0 commit comments