mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
With the addition of `browser.targets()` api, we now can connect to in-flight targets. For Puppeteer, it means that it can "miss" certain events happenning while it wasn't attached to the target. This patch: - fixes this problem with NetworkManager, preparing it for the missed `requestWillBeSent` event. - adds a new test to ensure that not a single unhandled promise rejection has happened during test execution. Fixes #1363.