feat(platform-web): expose ignoreDefaultArgs in browser config#119
Merged
V3RON merged 3 commits intoMay 13, 2026
Merged
Conversation
Forward Playwright's launch option through WebBrowserConfigSchema so users can disable or override Playwright's default Chromium/Firefox/WebKit launch arguments (e.g. removing --enable-automation, or providing a custom arg set) without having to fork the runner. Accepts either a boolean or a string[] of default args to ignore, matching Playwright's LaunchOptions.ignoreDefaultArgs signature.
|
@nachooya is attempting to deploy a commit to the Callstack Team on Vercel. A member of the Team first needs to authorize it. |
V3RON
approved these changes
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ignoreDefaultArgstoWebBrowserConfigSchema, accepting eitherbooleanorstring[]to match Playwright'sLaunchOptions.ignoreDefaultArgs.browserType.launch()in the web runner so users can disable Playwright's defaults (e.g. drop--enable-automation) or strip individual default args without having to fork the runner.Motivation
Some test setups need to disable specific Playwright defaults (for example to keep
--enable-automationoff so DRM / EME stacks behave the same way they do in a real browser, or to opt out of Playwright's headless-shell args). Without this option the only workaround is to wrap the platform and re-implement the launch flow.Test plan
nx run @react-native-harness/platform-web:typecheckpassesignoreDefaultArgs: trueand confirm the browser launches without Playwright's defaultsignoreDefaultArgs: ['--enable-automation']and confirm only that flag is stripped