@@ -1838,7 +1838,7 @@ The <dfn export for=commands>browser.createUserContext</dfn> command creates a [
18381838 <dt> Command Type</dt>
18391839 <dd>
18401840 <pre class="cddl remote-cddl">
1841- browser.Close = (
1841+ browser.CreateUserContext = (
18421842 method: "browser.createUserContext",
18431843 params: EmptyParams,
18441844 )
@@ -1866,7 +1866,7 @@ The <dfn export for=commands>browser.closeUserContext</dfn> command closes a use
18661866 <dt> Command Type</dt>
18671867 <dd>
18681868 <pre class="cddl remote-cddl">
1869- browser.Close = (
1869+ browser.CloseUserContext = (
18701870 method: "browser.closeUserContext",
18711871 params: {
18721872 userContext: browser.UserContext
@@ -1886,6 +1886,24 @@ The <dfn export for=commands>browser.closeUserContext</dfn> command closes a use
18861886
18871887<div algorithm="remote end steps for browser.closeUserContext">
18881888
1889+ The [=remote end steps=] with |command parameters| are:
1890+
1891+ 1. Let |user context| be the result of [=trying=] to find a [=user context=]
1892+ whose [=user context id=] equals |command
1893+ parameters|["<code>userContext</code>"] .
1894+
1895+ Issue: Do we need to define "find" to be able to combine it with [=trying=] ?
1896+
1897+ Issue: Should we allow closing the default context?
1898+
1899+ 1. [=Close=] any [=top-level browsing contexts=] contained that belong to the
1900+ |user context| without [=prompting to unload=] .
1901+
1902+ Note: This implicitly only affects browsing contexts that were under
1903+ automation in the first place.
1904+
1905+ 1. Return [=success=] with data null.
1906+
18891907</div>
18901908
18911909#### The browser.getUserContexts Command #### {#command-browser-getUserContexts}
@@ -1896,7 +1914,7 @@ The <dfn export for=commands>browser.getUserContexts</dfn> command returns a lis
18961914 <dt> Command Type</dt>
18971915 <dd>
18981916 <pre class="cddl remote-cddl">
1899- browser.Close = (
1917+ browser.GetUserContexts = (
19001918 method: "browser.getUserContexts",
19011919 params: EmptyParams,
19021920 )
0 commit comments