Skip to content

Comments

Make sure we run Page.enable before Page.getFrameTree#3101

Merged
kblok merged 2 commits intomasterfrom
fix-page-enable-concurrency
Jan 31, 2026
Merged

Make sure we run Page.enable before Page.getFrameTree#3101
kblok merged 2 commits intomasterfrom
fix-page-enable-concurrency

Conversation

@kblok
Copy link
Member

@kblok kblok commented Jan 21, 2026

There were some race conditions here.

Closes #3100

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes race conditions in the CDP Frame Manager by ensuring that Page.enable is sent and completes before Page.getFrameTree is called. This sequencing is critical to ensure frame events are properly received.

Changes:

  • Moved Page.enable call to execute before Page.getFrameTree instead of running them concurrently
  • Added an explanatory comment documenting the required ordering

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kblok kblok merged commit a066393 into master Jan 31, 2026
17 of 23 checks passed
@kblok kblok deleted the fix-page-enable-concurrency branch February 12, 2026 15:09
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.

Page operation results in System.NullReferenceException

1 participant