You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text: worklet global scopes; url:worklets.html#concept-document-worklet-global-scopes
@@ -1880,6 +1881,7 @@ BrowsingContextCommand = (
1880
1881
browsingContext.Navigate //
1881
1882
browsingContext.Print //
1882
1883
browsingContext.Reload //
1884
+
browsingContext.SetUserAgent //
1883
1885
browsingContext.SetViewport //
1884
1886
browsingContext.TraverseHistory
1885
1887
)
@@ -3406,6 +3408,53 @@ The [=remote end steps=] with |command parameters| are:
3406
3408
3407
3409
</div>
3408
3410
3411
+
#### The browsingContext.setUserAgent Command #### {#command-browsingContext-setUserAgent}
3412
+
3413
+
The <dfn export for=commands>browsingContext.setUserAgent</dfn> command sets the
3414
+
{{NavigatorID/userAgent}} string for a browsing context.
3415
+
3416
+
<dl>
3417
+
<dt>Command Type</dt>
3418
+
<dd>
3419
+
<pre class="cddl remote-cddl">
3420
+
browsingContext.SetUserAgent = (
3421
+
method: "browsingContext.setUserAgent",
3422
+
params: browsingContext.SetUserAgentParameters
3423
+
)
3424
+
3425
+
browsingContext.SetUserAgentParameters = {
3426
+
context: browsingContext.BrowsingContext,
3427
+
? userAgent: text,
3428
+
}
3429
+
</pre>
3430
+
</dd>
3431
+
<dt>Result Type</dt>
3432
+
<dd>
3433
+
<pre class="cddl">
3434
+
EmptyResult
3435
+
</pre>
3436
+
</dd>
3437
+
</dl>
3438
+
3439
+
<div algorithm="remote end steps for browsingContext.setUserAgent">
3440
+
3441
+
The [=remote end steps=] with |command parameters| are:
3442
+
3443
+
1. Let |context id| be the value of the <code>context</code> field of |command
3444
+
parameters|.
3445
+
3446
+
1. Let |context| be the result of [=trying=] to [=get a browsing context=] with
3447
+
|context id|.
3448
+
3449
+
1. Let |user agent| be the value of the <code>userAgent</code> field of |command
3450
+
parameters| if present, or null otherwise.
3451
+
3452
+
TODO: Set user agent.
3453
+
3454
+
1. Return [=success=] with data null.
3455
+
3456
+
</div>
3457
+
3409
3458
#### The browsingContext.setViewport Command #### {#command-browsingContext-setViewport}
3410
3459
3411
3460
The <dfn export for=commands>browsingContext.setViewport</dfn> command specific viewport characteristics (e.g. viewport width and viewport height) on the given top-level browsing context.
@@ -6530,7 +6579,7 @@ strong [=/map=] from handle ids to their corresponding objects.
6530
6579
script.InternalId = text;
6531
6580
</pre>
6532
6581
6533
-
The <code>script.InternalId</code> type represents the id of
6582
+
The <code>script.InternalId</code> type represents the id of
6534
6583
a previously serialized <code>script.RemoteValue</code> during
6535
6584
[=serialize as a remote value|serialization=].
6536
6585
@@ -7526,7 +7575,7 @@ To <dfn>set internal ids if needed</dfn> given |serialization internal map|,
7526
7575
1. If |previously serialized remote value| does not have a field
7527
7576
<code>internalId</code>, run the following steps:
7528
7577
7529
-
1. Let |internal id| be the string representation of a [[!RFC4122|UUID]]
7578
+
1. Let |internal id| be the string representation of a [[!RFC4122|UUID]]
0 commit comments