Skip to content

feat: support PUPPETEER_DANGEROUS_NO_SANDBOX environment variable - #3395

Merged
kblok merged 1 commit into
masterfrom
implement-upstream-change-14756
Mar 19, 2026
Merged

kblok merged 1 commit into
masterfrom
implement-upstream-change-14756

Conversation

@kblok

@kblok kblok commented Mar 19, 2026

Copy link
Copy Markdown
Member

Summary

  • Ports upstream Puppeteer PR #14756
  • When the PUPPETEER_DANGEROUS_NO_SANDBOX environment variable is set to "true", automatically appends --no-sandbox to Chrome's default launch arguments
  • Skips adding the flag if --no-sandbox is already present in the user-provided Args
  • Useful for Docker and CI environments where modifying application code to pass --no-sandbox is not feasible

Test plan

  • Verified ShouldReturnTheDefaultArguments test passes
  • Verified all LauncherTests.PuppeteerLaunchTests pass (33 passed, 3 skipped, 0 failed)
  • Built successfully for both netstandard2.0 and net10.0 TFMs
  • Built successfully with CDP_ONLY configuration

🤖 Generated with Claude Code

Port upstream PR #14756. When the PUPPETEER_DANGEROUS_NO_SANDBOX
environment variable is set to "true", automatically append --no-sandbox
to Chrome's default launch arguments unless already provided by the user.
This is useful for Docker and CI environments where modifying application
code to pass --no-sandbox is not feasible.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kblok
kblok merged commit d6ed995 into master Mar 19, 2026
16 checks passed
@kblok
kblok deleted the implement-upstream-change-14756 branch March 19, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant