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
Copy file name to clipboardExpand all lines: index.bs
+32-24Lines changed: 32 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1219,6 +1219,14 @@ access to that data in a {{Window}} global.
1219
1219
1220
1220
Issue: Define how this works.
1221
1221
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
+
1222
1230
# Modules # {#modules}
1223
1231
1224
1232
## The session Module ## {#module-session}
@@ -1812,93 +1820,93 @@ The [=remote end steps=] with |session| and <var ignore>command parameters</var>
1812
1820
1813
1821
</div>
1814
1822
1815
-
#### The browser.createPartition Command #### {#command-browser-createPartition}
1823
+
#### The browser.createUserContext Command #### {#command-browser-createUserContext}
1816
1824
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.
1818
1826
1819
1827
<dl>
1820
1828
<dt>Command Type</dt>
1821
1829
<dd>
1822
1830
<pre class="cddl remote-cddl">
1823
1831
browser.Close = (
1824
-
method: "browser.createPartition",
1832
+
method: "browser.createUserContext",
1825
1833
params: EmptyParams,
1826
1834
)
1827
1835
</pre>
1828
1836
</dd>
1829
1837
<dt>Return Type</dt>
1830
1838
<dd>
1831
1839
<pre class="cddl local-cddl">
1832
-
browser.createPartitionResult = {
1833
-
partition: browser.Partition
1840
+
browser.createUserContextResult = {
1841
+
userContext: browser.UserContext
1834
1842
}
1835
1843
</pre>
1836
1844
</dd>
1837
1845
</dl>
1838
1846
1839
-
<div algorithm="remote end steps for browser.createPartition">
1847
+
<div algorithm="remote end steps for browser.createUserContext">
1840
1848
1841
1849
</div>
1842
1850
1843
-
#### The browser.closePartition Command #### {#command-browser-closePartition}
1851
+
#### The browser.closeUserContext Command #### {#command-browser-closeUserContext}
1844
1852
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.
1846
1854
1847
1855
<dl>
1848
1856
<dt>Command Type</dt>
1849
1857
<dd>
1850
1858
<pre class="cddl remote-cddl">
1851
1859
browser.Close = (
1852
-
method: "browser.closePartition",
1860
+
method: "browser.closeUserContext",
1853
1861
params: {
1854
-
partition: browser.Partition
1862
+
userContext: browser.UserContext
1855
1863
},
1856
1864
)
1857
1865
</pre>
1858
1866
</dd>
1859
1867
<dt>Return Type</dt>
1860
1868
<dd>
1861
1869
<pre class="cddl local-cddl">
1862
-
browser.closePartitionResult = {
1863
-
partition: browser.Partition
1870
+
browser.closeUserContextResult = {
1871
+
userContext: browser.UserContext
1864
1872
}
1865
1873
</pre>
1866
1874
</dd>
1867
1875
</dl>
1868
1876
1869
-
<div algorithm="remote end steps for browser.closePartition">
1877
+
<div algorithm="remote end steps for browser.closeUserContext">
1870
1878
1871
1879
</div>
1872
1880
1873
-
#### The browser.getPartitions Command #### {#command-browser-getPartitions}
1881
+
#### The browser.getUserContexts Command #### {#command-browser-getUserContexts}
1874
1882
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.
0 commit comments