Skip to content

fix(mcp): enable the chromium sandbox for the default browser#41652

Merged
dcrousso merged 1 commit into
microsoft:mainfrom
dcrousso:fix-mcp-default-sandbox
Jul 7, 2026
Merged

fix(mcp): enable the chromium sandbox for the default browser#41652
dcrousso merged 1 commit into
microsoft:mainfrom
dcrousso:fix-mcp-default-sandbox

Conversation

@dcrousso

@dcrousso dcrousso commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

validateBrowserConfig defaults chromiumSandbox to true, but it gated that on browser.browserName instead of the resolved local browserName:

browser.browserName is undefined with no --browser while the local browserName is defaulted to chromium, so the block was skipped and chromiumSandbox stayed undefined

launching then adds --no-sandbox whenever chromiumSandbox !== true, so the default MCP session ran Chrome with the sandbox disabled, unlike an identical --browser=chrome session

use the resolved browserName, matching the sibling chromium block a few lines below

`validateBrowserConfig` defaults `chromiumSandbox` to `true`, but it gated that on `browser.browserName` instead of the resolved local `browserName`:

`browser.browserName` is `undefined` with no `--browser` while the local `browserName` is defaulted to `chromium`, so the block was skipped and `chromiumSandbox` stayed `undefined`

launching then adds `--no-sandbox` whenever `chromiumSandbox !== true`, so the default MCP session ran Chrome with the sandbox disabled, unlike an identical `--browser=chrome` session

use the resolved `browserName`, matching the sibling chromium block a few lines below
@dcrousso dcrousso requested a review from pavelfeldman July 6, 2026 22:16
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

1 failed
❌ [firefox] › mcp/annotate.spec.ts:173 › user-initiated annotate downloads zip with feedback.md @mcp-macos-latest-firefox

7645 passed, 1142 skipped


Merge workflow run.

@dcrousso dcrousso merged commit 810cb7f into microsoft:main Jul 7, 2026
17 of 18 checks passed
@dcrousso dcrousso deleted the fix-mcp-default-sandbox branch July 7, 2026 01:04
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.

2 participants