Skip to content

Commit

Permalink
Pass wait condition into await a navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Sep 23, 2021
1 parent c334c8c commit c75510b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2064,8 +2064,10 @@ and |max depth|:
</div>

<div algorithm>
To <dfn>await a navigation</dfn> given |context|, |request|, |wait condition|, and optionally
|history handling| (default: "<code>default</code>") and |ignore cache| (default: false):

To <dfn>await a navigation</dfn> given |context|, |request|, |wait condition|,
and optionally |history handling| (default: "<code>default</code>") and |ignore
cache| (default: false):

1. Let |navigation id| be the string representation of a
[[!RFC4122|UUID]] based on truly random, or pseudo-random numbers.
Expand Down Expand Up @@ -2346,6 +2348,9 @@ The [=remote end steps=] with |command parameters| are:

1. Assert: |context| is not null.

1. Let |wait condition| be the value of the <code>wait</code> field of |command
parameters| if present, or "<code>none</code>" otherwise.

1. Let |ignore cache| be the the value of the <code>ignoreCache</code> field of |command
parameters| if present, or false otherwise.

Expand All @@ -2356,8 +2361,8 @@ The [=remote end steps=] with |command parameters| are:
1. Let |request| be a new [=/request=] whose URL is |url|.

1. Return the result of [=await a navigation=] with |context|, |request|, |wait
condition|, history handling "<code>reload</code>", and ignore
cache |ignore cache|.
condition|, history handling "<code>reload</code>", and ignore cache |ignore
cache|.

</div>

Expand Down

0 comments on commit c75510b

Please sign in to comment.