Visitar URL original
fix(mcp): cancel file chooser when paths is omitted by halcyon-past · Pull Request #44092 · microsoft/playwright · GitHub
Skip to content

fix(mcp): cancel file chooser when paths is omitted - #44092

Open
Aritro Saha (halcyon-past) wants to merge 1 commit into
microsoft:mainfrom
halcyon-past:fix-44091
Open

Aritro Saha (halcyon-past) wants to merge 1 commit into
microsoft:mainfrom
halcyon-past:fix-44091

Conversation

@halcyon-past

Copy link
Copy Markdown

Summary

  • Pass empty array [] to fileChooser.setFiles([]) when paths is omitted in browser_file_upload.
  • Emit await fileChooser.setFiles([]) in generated code instead of await fileChooser.setFiles(undefined).

Fixes #44091

@halcyon-past

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

This branch has not been deployed

No deployments
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.

[MCP]: browser_file_upload emits invalid code and does not cancel file chooser when paths is omitted

1 participant