Skip to content

feat: Add pre/post launch hooks to BrowserPool#1879

Open
Mantisus wants to merge 1 commit intoapify:masterfrom
Mantisus:launch-hooks
Open

feat: Add pre/post launch hooks to BrowserPool#1879
Mantisus wants to merge 1 commit intoapify:masterfrom
Mantisus:launch-hooks

Conversation

@Mantisus
Copy link
Copy Markdown
Collaborator

@Mantisus Mantisus commented May 6, 2026

Description

Add two browser launch hooks to BrowserPool registered as decorators:

  • pre_launch_hook - called before a new browser is launched.
  • post_launch_hook - called after a new browser is launched, receives the newly created BrowserController. If the hook raises, the browser is closed before the error is propagated.

Issues

Testing

  • Added new tests for BrowserPool.

@Mantisus Mantisus self-assigned this May 6, 2026
@Mantisus Mantisus requested a review from vdusek May 6, 2026 23:39
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.

Add post-navigation hooks and browser lifecycle hooks

2 participants