Skip to content

chore(dispatcher): move potentiallyClosesScope into protocol metainfo#40833

Merged
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:chore-potentially-closes-scope-metainfo
May 14, 2026
Merged

chore(dispatcher): move potentiallyClosesScope into protocol metainfo#40833
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:chore-potentially-closes-scope-metainfo

Conversation

@dgozman
Copy link
Copy Markdown
Collaborator

@dgozman dgozman commented May 14, 2026

Summary

  • Make potentiallyClosesScope a flag on protocol methods in protocol.yml, generated into protocolMetainfo, and consulted solely from dispatcher.ts.
  • Remove the field from CallMetadata and drop the per-dispatcher progress.metadata.potentiallyClosesScope = true assignments.
  • Frame.expect no longer needs the flag: it already converts any thrown error (including TargetClosedError) into an ExpectResult.

Make `potentiallyClosesScope` a flag on protocol methods in protocol.yml,
generate it into protocolMetainfo, and consult it solely from dispatcher.ts.
Removes the field from CallMetadata and drops the per-dispatcher assignments.

While there, `Frame.expect` no longer needs the flag: it already converts
any thrown error (including TargetClosedError) into an ExpectResult.
@github-actions
Copy link
Copy Markdown
Contributor

Test results for "MCP"

5 failed
❌ [chrome] › mcp/annotate.spec.ts:251 › should start dashboard and annotate when no dashboard is running @mcp-windows-latest-chrome
❌ [chromium] › mcp/annotate.spec.ts:330 › should annotate when context has no fixed viewport @mcp-windows-latest-chromium
❌ [firefox] › mcp/annotate.spec.ts:398 › should cancel browser_annotate when the MCP client disconnects @mcp-windows-latest-firefox
❌ [msedge] › mcp/annotate.spec.ts:330 › should annotate when context has no fixed viewport @mcp-windows-latest-msedge
❌ [webkit] › mcp/http.spec.ts:103 › http transport browser lifecycle (isolated) @mcp-ubuntu-latest-webkit

7081 passed, 1104 skipped


Merge workflow run.

@github-actions
Copy link
Copy Markdown
Contributor

Test results for "tests 1"

2 flaky ⚠️ [webkit-library] › library/video.spec.ts:275 › screencast › should capture navigation `@webkit-ubuntu-22.04-node20`
⚠️ [playwright-test] › ui-mode-trace.spec.ts:812 › should update state on subsequent run `@windows-latest-node20`

41770 passed, 850 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.

2 participants