Skip to content

Commit 19d010e

Browse files
committed
Rename to UserContext; add a note about User Agents
1 parent 02e2922 commit 19d010e

File tree

1 file changed

+32
-24
lines changed

1 file changed

+32
-24
lines changed

index.bs

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,14 @@ access to that data in a {{Window}} global.
12191219

12201220
Issue: Define how this works.
12211221

1222+
# User Contexts # {#user-contexts}
1223+
1224+
A <dfn interface>UserContext</dfn> is an aggregation of browsing contexts that separates the browsing contexts in one user context from browsing contexts in another user context.
1225+
1226+
Note: User contexts are a WebDriver BiDi-specific equivalent to private browsing modes (https://www.w3.org/2001/tag/doc/private-browsing-modes/).
1227+
While we don't want to pose any restrictions on the implementations of private browsing modes, we want to allow to perform basic operations with private browsing
1228+
contexts. A user context can be seen as a user agent in terms of the Infra spec but currently WebDriver BiDi spec is not compliant with that definition of the user agent.
1229+
12221230
# Modules # {#modules}
12231231

12241232
## The session Module ## {#module-session}
@@ -1812,93 +1820,93 @@ The [=remote end steps=] with |session| and <var ignore>command parameters</var>
18121820

18131821
</div>
18141822

1815-
#### The browser.createPartition Command #### {#command-browser-createPartition}
1823+
#### The browser.createUserContext Command #### {#command-browser-createUserContext}
18161824

1817-
The <dfn export for=commands>browser.createPartition</dfn> command creates a storage partition for a group of browsing contexts.
1825+
The <dfn export for=commands>browser.createUserContext</dfn> command creates a {{UserContext}} of browsing contexts.
18181826

18191827
<dl>
18201828
<dt>Command Type</dt>
18211829
<dd>
18221830
<pre class="cddl remote-cddl">
18231831
browser.Close = (
1824-
method: "browser.createPartition",
1832+
method: "browser.createUserContext",
18251833
params: EmptyParams,
18261834
)
18271835
</pre>
18281836
</dd>
18291837
<dt>Return Type</dt>
18301838
<dd>
18311839
<pre class="cddl local-cddl">
1832-
browser.createPartitionResult = {
1833-
partition: browser.Partition
1840+
browser.createUserContextResult = {
1841+
userContext: browser.UserContext
18341842
}
18351843
</pre>
18361844
</dd>
18371845
</dl>
18381846

1839-
<div algorithm="remote end steps for browser.createPartition">
1847+
<div algorithm="remote end steps for browser.createUserContext">
18401848

18411849
</div>
18421850

1843-
#### The browser.closePartition Command #### {#command-browser-closePartition}
1851+
#### The browser.closeUserContext Command #### {#command-browser-closeUserContext}
18441852

1845-
The <dfn export for=commands>browser.closePartition</dfn> command closes the partition and all browsing contexts in it without running <code>beforeunload</code> handlers.
1853+
The <dfn export for=commands>browser.closeUserContext</dfn> command closes the userContext and all browsing contexts in it without running <code>beforeunload</code> handlers.
18461854

18471855
<dl>
18481856
<dt>Command Type</dt>
18491857
<dd>
18501858
<pre class="cddl remote-cddl">
18511859
browser.Close = (
1852-
method: "browser.closePartition",
1860+
method: "browser.closeUserContext",
18531861
params: {
1854-
partition: browser.Partition
1862+
userContext: browser.UserContext
18551863
},
18561864
)
18571865
</pre>
18581866
</dd>
18591867
<dt>Return Type</dt>
18601868
<dd>
18611869
<pre class="cddl local-cddl">
1862-
browser.closePartitionResult = {
1863-
partition: browser.Partition
1870+
browser.closeUserContextResult = {
1871+
userContext: browser.UserContext
18641872
}
18651873
</pre>
18661874
</dd>
18671875
</dl>
18681876

1869-
<div algorithm="remote end steps for browser.closePartition">
1877+
<div algorithm="remote end steps for browser.closeUserContext">
18701878

18711879
</div>
18721880

1873-
#### The browser.getPartitions Command #### {#command-browser-getPartitions}
1881+
#### The browser.getUserContexts Command #### {#command-browser-getUserContexts}
18741882

1875-
The <dfn export for=commands>browser.getPartitions</dfn> command returns a list of existing partitions in the browser instance.
1883+
The <dfn export for=commands>browser.getUserContexts</dfn> command returns a list of existing userContexts in the browser instance.
18761884

18771885
<dl>
18781886
<dt>Command Type</dt>
18791887
<dd>
18801888
<pre class="cddl remote-cddl">
18811889
browser.Close = (
1882-
method: "browser.getPartitions",
1890+
method: "browser.getUserContexts",
18831891
params: EmptyParams,
18841892
)
18851893
</pre>
18861894
</dd>
18871895
<dt>Return Type</dt>
18881896
<dd>
18891897
<pre class="cddl local-cddl">
1890-
browser.PartitionInfo = (
1891-
partition: browser.Partition,
1898+
browser.UserContextInfo = (
1899+
userContext: browser.UserContext,
18921900
)
1893-
browser.PartitionInfoList = [*browser.PartitionInfo]
1894-
browser.getPartitionsResult = {
1895-
partitions: browser.PartitionInfoList
1901+
browser.UserContextInfoList = [*browser.UserContextInfo]
1902+
browser.getUserContextsResult = {
1903+
userContexts: browser.UserContextInfoList
18961904
}
18971905
</pre>
18981906
</dd>
18991907
</dl>
19001908

1901-
<div algorithm="remote end steps for browser.getPartitions">
1909+
<div algorithm="remote end steps for browser.getUserContexts">
19021910

19031911
</div>
19041912

@@ -2013,7 +2021,7 @@ browsingContext.Info = {
20132021
url: text,
20142022
children: browsingContext.InfoList / null
20152023
? parent: browsingContext.BrowsingContext / null,
2016-
? partition: Browser.Partition / null
2024+
? userContext: Browser.UserContext / null
20172025
}
20182026
</pre>
20192027

@@ -2667,7 +2675,7 @@ The <dfn export for=commands>browsingContext.create</dfn> command creates a new
26672675
type: browsingContext.CreateType,
26682676
? referenceContext: browsingContext.BrowsingContext,
26692677
? background: bool .default false,
2670-
? partition: Browser.Partition / null
2678+
? userContext: Browser.UserContext / null
26712679
}
26722680
</pre>
26732681
</dd>

0 commit comments

Comments
 (0)