Skip to content

Commit 7713ef2

Browse files
committed
WIP partitions
1 parent 38ba606 commit 7713ef2

File tree

1 file changed

+93
-1
lines changed

1 file changed

+93
-1
lines changed

index.bs

Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1812,6 +1812,96 @@ The [=remote end steps=] with |session| and <var ignore>command parameters</var>
18121812

18131813
</div>
18141814

1815+
#### The browser.createPartition Command #### {#command-browser-createPartition}
1816+
1817+
The <dfn export for=commands>browser.createPartition</dfn> command creates a storage partition for a group of browsing contexts.
1818+
1819+
<dl>
1820+
<dt>Command Type</dt>
1821+
<dd>
1822+
<pre class="cddl remote-cddl">
1823+
browser.Close = (
1824+
method: "browser.createPartition",
1825+
params: EmptyParams,
1826+
)
1827+
</pre>
1828+
</dd>
1829+
<dt>Return Type</dt>
1830+
<dd>
1831+
<pre class="cddl local-cddl">
1832+
browser.createPartitionResult = {
1833+
partition: browser.Partition
1834+
}
1835+
</pre>
1836+
</dd>
1837+
</dl>
1838+
1839+
<div algorithm="remote end steps for browser.createPartition">
1840+
1841+
</div>
1842+
1843+
#### The browser.closePartition Command #### {#command-browser-closePartition}
1844+
1845+
The <dfn export for=commands>browser.closePartition</dfn> command closes the partition and all browsing contexts in it without running before unload handlers.
1846+
1847+
<dl>
1848+
<dt>Command Type</dt>
1849+
<dd>
1850+
<pre class="cddl remote-cddl">
1851+
browser.Close = (
1852+
method: "browser.closePartition",
1853+
params: {
1854+
partition: browser.Partition
1855+
},
1856+
)
1857+
</pre>
1858+
</dd>
1859+
<dt>Return Type</dt>
1860+
<dd>
1861+
<pre class="cddl local-cddl">
1862+
browser.closePartitionResult = {
1863+
partition: browser.Partition
1864+
}
1865+
</pre>
1866+
</dd>
1867+
</dl>
1868+
1869+
<div algorithm="remote end steps for browser.closePartition">
1870+
1871+
</div>
1872+
1873+
#### The browser.getPartitions Command #### {#command-browser-getPartitions}
1874+
1875+
The <dfn export for=commands>browser.getPartitions</dfn> command returns a list of existing partitions in the browser instance.
1876+
1877+
<dl>
1878+
<dt>Command Type</dt>
1879+
<dd>
1880+
<pre class="cddl remote-cddl">
1881+
browser.Close = (
1882+
method: "browser.getPartitions",
1883+
params: EmptyParams,
1884+
)
1885+
</pre>
1886+
</dd>
1887+
<dt>Return Type</dt>
1888+
<dd>
1889+
<pre class="cddl local-cddl">
1890+
browser.PartitionInfo = (
1891+
partition: browser.Partition,
1892+
)
1893+
browser.PartitionInfoList = [*browser.PartitionInfo]
1894+
browser.getPartitionsResult = {
1895+
partitions: browser.PartitionInfoList
1896+
}
1897+
</pre>
1898+
</dd>
1899+
</dl>
1900+
1901+
<div algorithm="remote end steps for browser.getPartitions">
1902+
1903+
</div>
1904+
18151905
## The browsingContext Module ## {#module-browsingContext}
18161906

18171907
The <dfn export for=modules>browsingContext</dfn> module contains commands and
@@ -1923,6 +2013,7 @@ browsingContext.Info = {
19232013
url: text,
19242014
children: browsingContext.InfoList / null
19252015
? parent: browsingContext.BrowsingContext / null,
2016+
? partition: Browser.Partition / null
19262017
}
19272018
</pre>
19282019

@@ -2575,7 +2666,8 @@ The <dfn export for=commands>browsingContext.create</dfn> command creates a new
25752666
browsingContext.CreateParameters = {
25762667
type: browsingContext.CreateType,
25772668
? referenceContext: browsingContext.BrowsingContext,
2578-
? background: bool .default false
2669+
? background: bool .default false,
2670+
? partition: Browser.Partition / null
25792671
}
25802672
</pre>
25812673
</dd>

0 commit comments

Comments
 (0)