Skip to content

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

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

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

Conversation

@halcyon-past

Copy link
Copy Markdown
Contributor

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
Contributor Author

@microsoft-github-policy-service agree

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5 failed
❌ [chrome] › mcp/crash.spec.ts:31 › crash recovery › reports the navigation error, then resets and logs the crash @mcp-ubuntu-latest-chrome
❌ [chrome] › mcp/crash.spec.ts:58 › crash recovery › lists only one tab @mcp-ubuntu-latest-chrome
❌ [chrome] › mcp/crash.spec.ts:79 › crash recovery › marks non-current crashed tab in the tab list @mcp-ubuntu-latest-chrome
❌ [chrome] › mcp/webmcp-dynamic.spec.ts:189 › a tool registered in an iframe can be called after the page is reloaded @mcp-ubuntu-latest-chrome
❌ [webkit] › mcp/sse.spec.ts:196 › sse transport browser lifecycle (persistent) @mcp-ubuntu-latest-webkit

5230 passed, 631 skipped


Merge workflow run.

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

2 participants