@@ -4645,6 +4645,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
46454645 <li><dfn data-x="navigation-status-complete" data-x-href="https://w3c.github.io/webdriver-bidi/#navigation-status-complete">navigation status complete</dfn></li>
46464646 <li><dfn data-x="navigation-status-url" data-x-href="https://w3c.github.io/webdriver-bidi/#navigation-status-url">navigation status url</dfn></li>
46474647 <li><dfn data-x="navigation-status-suggested-filename" data-x-href="https://w3c.github.io/webdriver-bidi/#navigation-status-suggested-filename">navigation status suggested filename</dfn></li>
4648+ <li><dfn data-x-href="https://w3c.github.io/webdriver-bidi/#webdriver-bidi-emulated-user-agent">WebDriver BiDi emulated User-Agent</dfn></li>
46484649 <li><dfn data-x-href="https://w3c.github.io/webdriver-bidi/#webdriver-bidi-navigation-aborted">WebDriver BiDi navigation aborted</dfn></li>
46494650 <li><dfn data-x-href="https://w3c.github.io/webdriver-bidi/#webdriver-bidi-navigation-committed">WebDriver BiDi navigation committed</dfn></li>
46504651 <li><dfn data-x-href="https://w3c.github.io/webdriver-bidi/#webdriver-bidi-navigation-failed">WebDriver BiDi navigation failed</dfn></li>
@@ -121071,12 +121072,12 @@ interface <dfn interface>Navigator</dfn> {
121071121072 data-x="dom-navigator-appVersion">appVersion</code></dfn> getter steps are:</p>
121072121073
121073121074 <ol>
121074- <li><p>If the <span data-x="default-user-agent-value">default `<code>User-Agent</code>`
121075- value</span> does not start with `<code data-x="">Mozilla/5.0 (</code>`, then return the empty
121076- string.</p></li>
121075+ <li>Let <var>userAgent</var> be <span data-x="dom-navigator-userAgent">userAgent</span>.</li>
121076+
121077+ <li><p>If the <var>userAgent</var> does not start with `<code data-x="">Mozilla/5.0 (</code>`,
121078+ then return the empty string.</p></li>
121077121079
121078- <li><p>Let <var>trail</var> be the substring of the <span
121079- data-x="default-user-agent-value">default `<code>User-Agent</code>` value</span>, <span
121080+ <li><p>Let <var>trail</var> be the substring of the <var>userAgent</var>, <span
121080121081 data-x="isomorphic decode">isomorphic decoded</span>, that follows the "<code
121081121082 data-x="">Mozilla/</code>" prefix.</p></li>
121082121083
@@ -121126,8 +121127,18 @@ interface <dfn interface>Navigator</dfn> {
121126121127 </dl>
121127121128
121128121129 <p>The <dfn attribute for="NavigatorID"><code data-x="dom-navigator-userAgent">userAgent</code></dfn>
121129- getter steps are to return the <span data-x="default-user-agent-value">default `<code>User-Agent</code>`
121130- value</span>.</p>
121130+ getter steps are:</p>
121131+
121132+ <ol>
121133+ <li><p>Let <var>emulatedUserAgent</var> be the result of <span>WebDriver BiDi emulated
121134+ User-Agent</span> with <span>this</span>'s <span>relevant settings object</span>.</p></li>
121135+
121136+ <li><p>If <var>emulatedUserAgent</var> is not null, then return
121137+ <var>emulatedUserAgent</var>.</p></li>
121138+
121139+ <li><p>Return <span data-x="default-user-agent-value">default `<code>User-Agent</code>`
121140+ value</span>.</p></li>
121141+ </ol>
121131121142
121132121143 <p>The <dfn attribute for="NavigatorID"><code data-x="dom-navigator-vendor">vendor</code></dfn>
121133121144 getter steps are to return the appropriate string from the following list:</p>
0 commit comments