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 22, 2021
1 parent 3832f2a commit 8e3c428
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1837,8 +1837,9 @@ To <dfn>get the browsing context info</dfn> given |context|,
</div>

<div algorithm>
To <dfn>await a navigation</dfn> given |context|, |request| 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 @@ -2098,7 +2099,8 @@ The [=remote end steps=] with |command parameters| are:

1. Let |request| be a new [=/request=] whose URL is |url record|.

1. Return the result of [=await a navigation=] with |context| and |request|.
1. Return the result of [=await a navigation=] with |context|, |request|, and
|wait condition|.

</div>

Expand Down Expand Up @@ -2136,6 +2138,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 @@ -2145,8 +2150,9 @@ 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|,
history handling "<code>reload</code>", and ignore cache |ignore cache|.
1. Return the result of [=await a navigation=] with |context|, |request|, |wait
condition|, history handling "<code>reload</code>", and ignore cache |ignore
cache|.

</div>

Expand Down

0 comments on commit 8e3c428

Please sign in to comment.