[Feature]: Emit console and network events on the Browser and Browser context classes
Author: OrKoNCreated Jul 29, 2026Updated Aug 4, 2026
LabelsP1confirmed
Feature description
Currently, if a new page is created or when Puppeteer attaches to an existing browser instance, console and network events are sent by CDP while the client does not have a handle to the Page object to be able to catch them. We should re-emit all events on Browser and BrowserContext classes with links to the Page object.
Related https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/2382 https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/2395
After that we should be able to rewrite collectors to use the browser level events instead. Special consideration would be needed for the checks that determine if there are any listeners before emitting events.
Pseudo-code:
browser.on('console', msg => // msg.page() or msg.worker());
browser.on('request', msg => // msg.page() or msg.worker());
Source: puppeteer/puppeteer