@@ -1420,6 +1420,24 @@ downloads. This format of range header value can be set using <a>add a range hea
1420
1420
have this value start with `<code> Mozilla/5.0 (</code> ` and be generally modeled after other web
1421
1421
browsers.
1422
1422
1423
+ <div algorithm>
1424
+ <p> To get the <dfn export id=environment-default-user-agent-value>environment default `<code>User-Agent</code>` value</dfn>
1425
+ for an <a>environment settings object</a> <var> environment</var> :
1426
+
1427
+ <ol>
1428
+ <li><p> Let <var> userAgent</var> be the <a>WebDriver BiDi emulated User-Agent</a> for
1429
+ <var> environment</var> .
1430
+
1431
+ <li><p> If <var> userAgent</var> is not null, then set <var> userAgent</var> to
1432
+ <a>isomorphic encoded</a> <var> userAgent</var> .
1433
+
1434
+ <li><p> Otherwise, set <var> userAgent</var> to <a>default `<code>User-Agent</code>` value</a> .
1435
+
1436
+ <li><p> <a for="header list">Append</a> (`<code> User-Agent</code> `, <var> userAgent</var> ) to
1437
+ <var> httpRequest</var> 's <a for=request>header list</a> .
1438
+ </ol>
1439
+ </div>
1440
+
1423
1441
<p> The <dfn>document `<code>Accept</code>` header value</dfn> is
1424
1442
`<code> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</code> `.
1425
1443
@@ -5988,17 +6006,12 @@ run these steps:
5988
6006
5989
6007
<li>
5990
6008
<p> If <var> httpRequest</var> 's <a for=request>header list</a> <a
5991
- for="header list"> does not contain</a> `<code> User-Agent</code> `:
6009
+ for="header list"> does not contain</a> `<code> User-Agent</code> `, then user agents should run
6010
+ the following steps:
5992
6011
5993
6012
<ol>
5994
- <li><p> Let <var> userAgent</var> be the result of running the
5995
- <a>WebDriver BiDi emulated User-Agent</a> with <var> httpRequest</var> 's
5996
- <a for=request>client</a> .
5997
-
5998
- <li><p> If <var> userAgent</var> is not null, then set <var> userAgent</var> to
5999
- <a>isomorphic encoded</a> <var> userAgent</var> .
6000
-
6001
- <li><p> Otherwise, set <var> userAgent</var> to <a>default `<code>User-Agent</code>` value</a> .
6013
+ <li><p> Let <var> userAgent</var> be the <var> httpRequest</var> 's <a for=request>client</a>' s
6014
+ <a>environment default `<code>User-Agent</code>` value</a> .
6002
6015
6003
6016
<li><p> <a for="header list">Append</a> (`<code> User-Agent</code> `, <var> userAgent</var> ) to
6004
6017
<var> httpRequest</var> 's <a for=request>header list</a> .
0 commit comments