@@ -1416,6 +1416,24 @@ downloads. This format of range header value can be set using <a>add a range hea
1416
1416
<a>implementation-defined</a> <a for=/>header value</a> for the `<code> User-Agent</code> `
1417
1417
<a for=/>header</a> .
1418
1418
1419
+ <div algorithm>
1420
+ <p> To get the <dfn export id=environment-default-user-agent-value>environment default `<code>User-Agent</code>` value</dfn>
1421
+ for an <a>environment settings object</a> <var> environment</var> :
1422
+
1423
+ <ol>
1424
+ <li><p> Let <var> userAgent</var> be the <a>WebDriver BiDi emulated User-Agent</a> for
1425
+ <var> environment</var> .
1426
+
1427
+ <li><p> If <var> userAgent</var> is not null, then set <var> userAgent</var> to
1428
+ <a>isomorphic encoded</a> <var> userAgent</var> .
1429
+
1430
+ <li><p> Otherwise, set <var> userAgent</var> to <a>default `<code>User-Agent</code>` value</a> .
1431
+
1432
+ <li><p> <a for="header list">Append</a> (`<code> User-Agent</code> `, <var> userAgent</var> ) to
1433
+ <var> httpRequest</var> 's <a for=request>header list</a> .
1434
+ </ol>
1435
+ </div>
1436
+
1419
1437
<p> The <dfn>document `<code>Accept</code>` header value</dfn> is
1420
1438
`<code> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</code> `.
1421
1439
@@ -5891,17 +5909,12 @@ run these steps:
5891
5909
5892
5910
<li>
5893
5911
<p> If <var> httpRequest</var> 's <a for=request>header list</a> <a
5894
- for="header list"> does not contain</a> `<code> User-Agent</code> `:
5912
+ for="header list"> does not contain</a> `<code> User-Agent</code> `, then user agents should run
5913
+ the following steps:
5895
5914
5896
5915
<ol>
5897
- <li><p> Let <var> userAgent</var> be the result of running the
5898
- <a>WebDriver BiDi emulated User-Agent</a> with <var> httpRequest</var> 's
5899
- <a for=request>client</a> .
5900
-
5901
- <li><p> If <var> userAgent</var> is not null, then set <var> userAgent</var> to
5902
- <a>isomorphic encoded</a> <var> userAgent</var> .
5903
-
5904
- <li><p> Otherwise, set <var> userAgent</var> to <a>default `<code>User-Agent</code>` value</a> .
5916
+ <li><p> Let <var> userAgent</var> be the <var> httpRequest</var> 's <a for=request>client</a>' s
5917
+ <a>environment default `<code>User-Agent</code>` value</a> .
5905
5918
5906
5919
<li><p> <a for="header list">Append</a> (`<code> User-Agent</code> `, <var> userAgent</var> ) to
5907
5920
<var> httpRequest</var> 's <a for=request>header list</a> .
0 commit comments