Files
gstack/browse
Garry Tan a835de39b0 v1.40.0.1 fix(browse): enable Chromium sandbox on headed launchPersistentContext
Playwright auto-adds --no-sandbox whenever chromiumSandbox !== true
(playwright-core/lib/server/chromium/chromium.js:291-292). The headless
chromium.launch() site set the option; the two headed sites
(launchHeaded() and handoff()) did not. Every headed launch on macOS
and Linux showed Chromium's yellow "unsupported command-line flag:
--no-sandbox" infobar.

Introduces shouldEnableChromiumSandbox() — centralizes the Win32 / CI /
CONTAINER / root heuristic that previously lived only in the headless
path's explicit --no-sandbox push at :225. All three launch sites now
use the helper, and six unit tests pin the policy across darwin,
linux, win32, CI, CONTAINER, and root.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 20:39:21 -07:00
..