Skip to content

fix(network): use internal methods in HarTracer#41186

Merged
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:fix-network-errors
Jun 8, 2026
Merged

fix(network): use internal methods in HarTracer#41186
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:fix-network-errors

Conversation

@dgozman

@dgozman dgozman commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Publicly-facing methods like Response.sizes() throw upon page closure. This makes ongoing har recording in the trace to sometimes throw an internal error instead of handling the page closure gracefully.

Fixes the TargetClosedError: Test ended flaky error on tracing bots that started after #40893.

Publicly-facing methods like `Response.sizes()` throw
upon page closure. This makes ongoing har recording in the trace
to sometimes throw an internal error instead of handling the
page closure gracefully.

Fixes the `TargetClosedError: Test ended` flaky error on tracing bots.
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

7266 passed, 1119 skipped


Merge workflow run.

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 flaky ⚠️ [chromium-library] › library/video.spec.ts:647 › screencast › should capture full viewport `@chromium-ubuntu-22.04-node24`

39521 passed, 774 skipped


Merge workflow run.

@dgozman dgozman merged commit 910b224 into microsoft:main Jun 8, 2026
46 checks passed
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