Skip to content

feat(page): add 'bringtofront' event#40229

Merged
pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman:feat-page-bringtofront-event
Apr 15, 2026
Merged

feat(page): add 'bringtofront' event#40229
pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman:feat-page-bringtofront-event

Conversation

@pavelfeldman
Copy link
Copy Markdown
Member

Summary

  • Adds a new bringtofront event on Page that fires whenever any connected client calls page.bringToFront().
  • Server emits from Page.bringToFront; dispatcher forwards to every connected client (including the initiator).

Comment thread docs/src/api/class-page.md Outdated
* since: v1.60
- argument: <[Page]>

Emitted when a client calls [`method: Page.bringToFront`]. The event is dispatched to all clients connected to the page,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not an even on the context, so that the client could listen to all pages?

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@pavelfeldman pavelfeldman force-pushed the feat-page-bringtofront-event branch from 9443d87 to 5e8b192 Compare April 15, 2026 22:16
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

Test results for "MCP"

6044 passed, 976 skipped


Merge workflow run.

@github-actions
Copy link
Copy Markdown
Contributor

Test results for "tests 1"

4 flaky ⚠️ [firefox-library] › library/browsertype-launch.spec.ts:22 › should reject all promises when browser is closed `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1080 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node20`
⚠️ [playwright-test] › ui-mode-test-output.spec.ts:118 › should collapse repeated console messages for test `@ubuntu-latest-node22`
⚠️ [playwright-test] › ui-mode-trace.spec.ts:812 › should update state on subsequent run `@windows-latest-node20`

39188 passed, 847 skipped


Merge workflow run.

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