Skip to content

fix(mcp extension): look for extension profile in default user data dir#41972

Closed
sazzadsadib wants to merge 2 commits into
microsoft:mainfrom
sazzadsadib:patch-1
Closed

fix(mcp extension): look for extension profile in default user data dir#41972
sazzadsadib wants to merge 2 commits into
microsoft:mainfrom
sazzadsadib:patch-1

Conversation

@sazzadsadib

Copy link
Copy Markdown

fixes the silent hang from microsoft/playwright-mcp#1571

running with --extension and no --user-data-dir, the relay spawns chrome without --profile-directory, so connect.html opens in the last used profile. if the extension lives in a different profile the page never loads and establishExtensionConnection() waits forever with no error.

this adds a defaultUserDataDir(channel) helper returning the standard chrome/edge user data folder per OS, used as fallback so the existing profile lookup actually runs on default setups. no behavior change if you pass your own dir. unknown channels fall back to old behavior.

Signed-off-by: Md. Sazzad Ur Rahman <sazzadsadib@gmail.com>
…extension profile

Signed-off-by: Md. Sazzad Ur Rahman <sazzadsadib@gmail.com>
@sazzadsadib

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@dcrousso

Copy link
Copy Markdown
Contributor

im pretty sure this was fixed in #41939

@dcrousso dcrousso closed this Jul 24, 2026
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