@@ -1416,6 +1416,24 @@ downloads. This format of range header value can be set using <a>add a range hea
14161416<a>implementation-defined</a> <a for=/>header value</a> for the `<code> User-Agent</code> `
14171417<a for=/>header</a> .
14181418
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+
14191437<p> The <dfn>document `<code>Accept</code>` header value</dfn> is
14201438`<code> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</code> `.
14211439
@@ -5891,17 +5909,12 @@ run these steps:
58915909
58925910 <li>
58935911 <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:
58955914
58965915 <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> .
59055918
59065919 <li><p> <a for="header list">Append</a> (`<code> User-Agent</code> `, <var> userAgent</var> ) to
59075920 <var> httpRequest</var> 's <a for=request>header list</a> .
0 commit comments