Skip to content

Commit

Permalink
traversable links
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Jun 24, 2024
1 parent e9a18f9 commit d771d93
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ navigables. This initially contains the [=event name=] for events that
are <dfn export for=event>in the default event set</dfn>.

A [=BiDi session=] has a <dfn export for=event>navigable event map</dfn>,
which is a [=/map=] with [=navigable/top-level traversable=] keys and values
which is a [=/map=] with [=/top-level traversable=] keys and values
that are a [=/set=] of [=event name=]s for events that are enabled in the given
navigable.

Expand Down Expand Up @@ -1337,11 +1337,11 @@ which is a unique string set upon the user context creation.
A [=/navigable=] has an <dfn export>associated user context</dfn>, which is a [=user
context=].

When a new [=navigable/top-level traversable=] is created its [=associated user context=]
When a new [=/top-level traversable=] is created its [=associated user context=]
is set to a user context in the [=set of user contexts=].

Note: In some cases the user context is set by specification when the
[=navigable/top-level traversable=] is created, however in cases where no such
[=/top-level traversable=] is created, however in cases where no such
requirements are present, the [=associated user context=] for a [=/top-level
traversable=] is implemenation-defined.

Expand All @@ -1353,7 +1353,7 @@ A [=child navigable=]'s [=associated user context=] is it's
[=navigable/parent=]'s [=associated user context=].

A [=user context=] which isn't the [=associated user context=] for any
[=navigable/top-level traversable=] is an <dfn>empty user context</dfn>.
[=/top-level traversable=] is an <dfn>empty user context</dfn>.

The <dfn>default user context</dfn> is a [=user context=] with [=user context
id=] <code>"default"</code>.
Expand Down Expand Up @@ -1479,7 +1479,7 @@ events are disabled, the return value is always empty.
1. For each |navigable| of |already enabled navigables|, remove |event
name| from |event map|[|navigable|].

1. Let |newly enabled contexts| be a list of all [=navigable/top-level traversable=]
1. Let |newly enabled contexts| be a list of all [=/top-level traversable=]
that are not contained in |already enabled navigables|,

1. Set |enabled events|[|event name|] to |newly enabled contexts|.
Expand Down Expand Up @@ -2649,7 +2649,7 @@ prompt types.

#### The browsingContext.activate Command #### {#command-browsingContext-activate}

The <dfn export for=commands>browsingContext.activate</dfn> command activates and focuses the given [=navigable/top-level traversable=].
The <dfn export for=commands>browsingContext.activate</dfn> command activates and focuses the given [=/top-level traversable=].

<dl>
<dt>Command Type</dt>
Expand Down Expand Up @@ -2681,7 +2681,7 @@ The [=remote end steps=] with |command parameters| are:

1. Let |navigable| be the result of [=trying=] to [=get a navigable=] with |navigable id|.

1. If |navigable| is not a [=navigable/top-level traversable=], return [=error=] with [=error code=] [=invalid argument=].
1. If |navigable| is not a [=/top-level traversable=], return [=error=] with [=error code=] [=invalid argument=].

1. Return [=activate a navigable=] with |navigable|.

Expand Down Expand Up @@ -3004,7 +3004,7 @@ The [=remote end steps=] with <var ignore>session</var> and |command parameters|
#### The browsingContext.close Command #### {#command-browsingContext-close}

The <dfn export for=commands>browsingContext.close</dfn> command closes a
[=navigable/top-level traversable=].
[=/top-level traversable=].

<dl>
<dt>Command Type</dt>
Expand Down Expand Up @@ -3044,7 +3044,7 @@ The [=remote end steps=] with |command parameters| are:

1. Assert: |navigable| is not null.

1. If |navigable| is not a [=navigable/top-level traversable=], return [=error=] with
1. If |navigable| is not a [=/top-level traversable=], return [=error=] with
[=error code=] [=invalid argument=].

1. If |prompt unload| is true:
Expand All @@ -3058,7 +3058,7 @@ The [=remote end steps=] with |command parameters| are:
1. Return [=success=] with data null.

Issue(w3c/webdriver-bidi#170): There is an open discussion about the behavior
when closing the last [=navigable/top-level traversable=]. We could expect to close
when closing the last [=/top-level traversable=]. We could expect to close
the browser, close the session or leave this up to the implementation.

</div>
Expand Down Expand Up @@ -3111,7 +3111,7 @@ The [=remote end steps=] with |command parameters| are:
result of [=trying=] to [=get a navigable=] with
|reference navigable id|. Otherwise let |reference navigable| be null.

1. If |reference navigable| is not null and is not a [=navigable/top-level traversable=],
1. If |reference navigable| is not null and is not a [=/top-level traversable=],
return [=error=] with [=error code=] [=invalid argument=].

1. If the implementation is unable to create a new navigable for any
Expand All @@ -3128,17 +3128,17 @@ The [=remote end steps=] with |command parameters| are:

1. If |user context| is null, return [=error=] with [=error code=] [=no such user context=].

1. If the implementation is unable to create a new [=navigable/top-level traversable=]
1. If the implementation is unable to create a new [=/top-level traversable=]
with [=associated user context=] |user context| for any reason, return
[=error=] with [=error code=] [=unsupported operation=].

<!-- This is based on step 5 of https://w3c.github.io/webdriver/#new-window,
but without using the "current browsing context" concept. -->
1. Create a new [=navigable/top-level traversable=] by running the [=window open steps=]
1. Create a new [=/top-level traversable=] by running the [=window open steps=]
with <var ignore>url</var> set to "<code>about:blank</code>", <var
ignore>target</var> set to the empty string, and <var ignore>features</var>
set to "<code>noopener</code>", and setting the [=associated user context=]
for the newly created [=navigable/top-level traversable=] to |user context|. Which OS
for the newly created [=/top-level traversable=] to |user context|. Which OS
window the new [=/navigable=] is created in depends on |type| and
|reference navigable|:

Expand Down Expand Up @@ -3977,7 +3977,7 @@ The [=remote end steps=] with |command parameters| are:
1. Let |navigable| be the result of [=trying=] to [=get a navigable=] with
|navigable id|.

1. If |navigable| is not a [=navigable/top-level traversable=], return [=error=] with
1. If |navigable| is not a [=/top-level traversable=], return [=error=] with
[=error code=] [=invalid argument=].

1. If the implementation is unable to adjust the |navigable|'s [=layout viewport=]
Expand Down Expand Up @@ -4959,7 +4959,7 @@ To <dfn>process a network event</dfn> given |session|, |event|, and |request|:
1. If there is a [=/navigable=] whose [=active window=] is |environment
settings|' [=environment settings object/global object=], set |navigable id|
to the [=navigable id=] for that navigable, and set |top-level navigable id|
to be [=navigable/top-level traversable=]'s [=navigable id=] for that
to be [=/top-level traversable=]'s [=navigable id=] for that
context.

1. Let |intercepts| be the result of [=get the network intercepts=] with
Expand Down Expand Up @@ -6073,7 +6073,7 @@ The [=remote end steps=] given |session| and |command parameters| are:
1. Let |navigable| be the result of [=trying=] to [=get a navigable=]
with |navigable id|.

1. If |navigable| is not a [=navigable/top-level traversable=], return [=error=]
1. If |navigable| is not a [=/top-level traversable=], return [=error=]
with [=error code=] [=invalid argument=].

1. Append |navigable| to |navigables|.
Expand Down Expand Up @@ -8913,7 +8913,7 @@ The [=remote end steps=] given |session| and |command parameters| are:

1. Let |navigable| be the result of [=trying=] to [=get a navigable=] with |navigable id|.

1. If |navigable| is not a [=navigable/top-level traversable=], return [=error=] with [=error code=] [=invalid argument=].
1. If |navigable| is not a [=/top-level traversable=], return [=error=] with [=error code=] [=invalid argument=].

1. Append |navigable| to |navigables|.

Expand Down

0 comments on commit d771d93

Please sign in to comment.