diff --git a/index.bs b/index.bs index 655577387..b72fbd650 100644 --- a/index.bs +++ b/index.bs @@ -1838,7 +1838,7 @@ The browser.createUserContext command creates a [
- browser.Close = ( + browser.CreateUserContext = ( method: "browser.createUserContext", params: EmptyParams, ) @@ -1866,7 +1866,7 @@ The browser.closeUserContext command closes a use
- browser.Close = ( + browser.CloseUserContext = ( method: "browser.closeUserContext", params: { userContext: browser.UserContext @@ -1886,6 +1886,24 @@ The browser.closeUserContext command closes a use+The [=remote end steps=] with |command parameters| are: + +1. Let |user context| be the result of [=trying=] to find a [=user context=] + whose [=user context id=] equals |command + parameters|["#### The browser.getUserContexts Command #### {#command-browser-getUserContexts} @@ -1896,7 +1914,7 @@ The browser.getUserContexts command returns a lisuserContext
"]. + + Issue: Do we need to define "find" to be able to combine it with [=trying=]? + + Issue: Should we allow closing the default context? + +1. [=Close=] any [=top-level browsing contexts=] contained that belong to the + |user context| without [=prompting to unload=]. + + Note: This implicitly only affects browsing contexts that were under + automation in the first place. + +1. Return [=success=] with data null. +
- browser.Close = ( + browser.GetUserContexts = ( method: "browser.getUserContexts", params: EmptyParams, )