Understand the Forked Playwright Client Architecture
mainThe dev-browser uses a forked subset of Playwright's client-side code designed to run inside a QuickJS WASM sandbox. This allows sandboxed user scripts to use standard Playwright objects like Page, Frame, Locator, and ElementHandle without granting the sandbox direct access to the host filesystem, processes, or sockets.
Execution Flow:
User script $\rightarrow$ QuickJS sandbox $\rightarrow$ forked Playwright client $\rightarrow$ transport bridge $\rightarrow$ host Playwright dispatcher $\rightarrow$ real Playwright $\rightarrow$ browser