Skip to content

Fix a logic bug in Browser::create_browser_context.#315

Open
chanxuehong wants to merge 1 commit intomattsse:mainfrom
chanxuehong:browser-context
Open

Fix a logic bug in Browser::create_browser_context.#315
chanxuehong wants to merge 1 commit intomattsse:mainfrom
chanxuehong:browser-context

Conversation

@chanxuehong
Copy link
Copy Markdown

@chanxuehong chanxuehong commented Apr 3, 2026

Issue # (if available)

#316

Description of changes

Browser::start_incognito_context creates a new BrowserContext and sends a HandlerMessage::InsertContext message, whereas Browser::create_browser_context does not perform this step.

This commit fixes the inconsistency and also improves the code structure.

Checklist

  • Added change to the changelog
  • Created unit tests for my feature (if needed)
  • Created a least one integration test

Browser::start_incognito_context creates a new BrowserContext and sends a HandlerMessage::InsertContext message, whereas Browser::create_browser_context does not perform this step.

This commit fixes the inconsistency and also improves the code structure.
@chanxuehong
Copy link
Copy Markdown
Author

#309 implements the same functionality as this PR. Either one can be merged as needed, depending on which is more appropriate.

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.

1 participant