Skip to content

Commit c21e5f3

Browse files
get back "WebDriver BiDi download started"
1 parent dfe7962 commit c21e5f3

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

index.bs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5592,6 +5592,40 @@ The [=remote end event trigger=] is the
55925592

55935593
</div>
55945594

5595+
<div algorithm>
5596+
Issue: TODO: Removed after HTML spec switched to [=WebDriver BiDi download will begin=].
5597+
5598+
The [=remote end event trigger=] is the <dfn export>WebDriver BiDi download
5599+
started</dfn> steps given |navigable| and |navigation status|:
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+
55955629
#### The browsingContext.downloadEnd Event #### {#event-browsingContext-downloadEnd}
55965630

55975631
<dl>

0 commit comments

Comments
 (0)