Skip to content

Commit 8cb52cd

Browse files
Try to access [=default User-Agent value=] callees
1 parent 989153d commit 8cb52cd

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

index.bs

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ spec: SCREEN-ORIENTATION; urlPrefix: https://www.w3.org/TR/screen-orientation
206206
spec: FETCH; urlPrefix: https://fetch.spec.whatwg.org/
207207
type: dfn
208208
text: default User-Agent value; url: #default-user-agent-value
209+
text: HTTP-network-or-cache fetch; url: #concept-http-network-or-cache-fetch
210+
text: request; url: #fetch-params-request
209211
spec: HTML; urlPrefix: https://html.spec.whatwg.org/multipage/
210212
type: dfn
211213
text: 2D context creation algorithm; url: canvas.html#2d-context-creation-algorithm
@@ -235,6 +237,7 @@ spec: HTML; urlPrefix: https://html.spec.whatwg.org/multipage/
235237
text: navigable; for:window; url: nav-history-apis.html#window-navigable
236238
text: navigables; url: document-sequences.html#navigables
237239
text: navigation id; url: browsing-the-web.html#navigation-id
240+
text: NavigatorID; url: system-state.html#navigatorid
238241
text: ongoing-navigation; url: browsing-the-web.html#ongoing-navigation
239242
text: origin-clean; url: canvas.html#concept-canvas-origin-clean
240243
text: parent; for:navigable; url: document-sequences.html#nav-parent
@@ -6187,10 +6190,26 @@ The [=default User-Agent value=] getter steps is implementation defined. A
61876190
WebDriver-BiDi [=remote end=] must have an implementation that runs the following
61886191
steps:
61896192

6190-
Issue: get |related navigables|.
6193+
1. Let |related navigables| be an empty list.
61916194

6192-
1. Let |related navigables| be the implementation-defined list of navigables related
6193-
to the caller of these steps.
6195+
1. If [=default User-Agent value=] was accessed during execution of the
6196+
[=HTTP-network-or-cache fetch=] algorithm with |fetchParams|:
6197+
6198+
1. Let |request| be |fetchParams|’s [=request=].
6199+
6200+
1. If |request|'s [=request/client=] is not null, let |related navigables|
6201+
be the result of [=get related navigables=] with |request|'s
6202+
[=request/client=].
6203+
6204+
1. If [=default User-Agent value=] was accessed from [=NavigatorID=] interface:
6205+
6206+
1. Let |realm| be [=current Realm Record=].
6207+
6208+
1. Let |environment settings| be the [=environment settings object=] whose
6209+
[=realm execution context=]'s Realm component is |realm|.
6210+
6211+
1. Let |related navigables| be the result of [=get related navigables=] given
6212+
|environment settings|.
61946213

61956214
1. Let |emulated user agent| be the result of [=get emulated user agent=] given
61966215
|related navigables|.

0 commit comments

Comments
 (0)