Skip to main content

shared

Function shared 

Source
pub fn shared(chrome: &Path) -> Result<&'static Browser, BrowserError>
Expand description

The one browser this process shares, launched from chrome on first use.

A test binary opens many pages and needs one browser; every Page is an isolated target in a browser context of its own, so sharing the process shares nothing a page can observe. The browser lives until the process exits, and Chrome exits when its pipe closes.