Skip to content

chore(chromium): close pages that crashed before connecting over CDP - #43075

Merged
Dmitry Gozman (dgozman) merged 1 commit into
microsoft:mainfrom
dgozman:fix-41714-followup
Oct 3, 2026
Merged

Dmitry Gozman (dgozman) merged 1 commit into
microsoft:mainfrom
dgozman:fix-41714-followup

Conversation

@dgozman

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #42936.

  • A page that has no renderer while connecting, e.g. crashed or discarded, is now closed and removed in _onTargetCrashed, instead of being special-cased in Page._markInitialized.
  • Inspector.enable is sent together with the other initialization commands, and the flag moved from BrowserContext._skipCrashedPages to CRBrowser._isConnecting.
  • New tests: connecting when the opener of a live popup has crashed, and playwright-cli attach --cdp with a crashed page.

References #41714

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

3 flaky ⚠️ [chromium-library] › library/browsertype-connect.spec.ts:720 › run-server › should record trace with sources `@chromium-ubuntu-22.04-node24`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:257 › third party 'Partitioned;' cookies `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:470 › top level 'Partitioned;' cookie and same origin iframe `@firefox-ubuntu-22.04-node20`

52546 passed, 1270 skipped


Merge workflow run.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

8944 passed, 1495 skipped


Merge workflow run.

@dgozman
Dmitry Gozman (dgozman) merged commit 626808d into microsoft:main Oct 3, 2026
45 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