Closed OrKoN closed 8 months ago
Looks like I have messed up the branch a bit. Please do not review changes for now.
I have recovered lost changes and the PR is now ready for review.
The Browser Testing and Tools Working Group just discussed Support user contexts
.
As mentioned on matrix, Firefox' containers persist after closing the browser. If the Chrome equivalent is ephemeral, maybe the spec should be clear about the lifecycle of the contexts created by a WebDriver BiDi session? Eg explicitly say that they will be destroyed at the end of the session, or when closing the browser?
User Contexts allow basic isolation of the web content state and parallelization of test runs without paying the costs of launching a fresh/multiple browser processes. In this proposal, there is no session created for the user context: multiple user contexts are managed by the same session. The advantage is that the same session can create a fresh state for its operations. In practical terms, we want to have something that would allow us to implement https://pptr.dev/api/puppeteer.browsercontext/#example In Chrome, that corresponds to an incognito window (but you can have multiple for automation).
Issue https://github.com/w3c/webdriver-bidi/issues/289
Related links:
Open questions/TODOs:
Preview | Diff