Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: waitForNavigation issue with aborted events #9883

Merged
merged 2 commits into from
Mar 21, 2023
Merged

Conversation

Lightning00Blade
Copy link
Collaborator

Fixes #9881, fixes #8383.
The issue seem to be that we don't listen to all the possible event for Request/Response so we never try to see if there are no requests.

@OrKoN Let's take a closer look together to see if there are other "unhappy" paths that need to handled.

Copy link
Collaborator

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

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

Nice finding! Unfortunately, I don't know if there are other unhappy cases.

@Lightning00Blade Lightning00Blade marked this pull request as ready for review March 21, 2023 09:22
@OrKoN OrKoN merged commit 36c029b into main Mar 21, 2023
@OrKoN OrKoN deleted the fix-waitfornavigation branch March 21, 2023 09:22
@release-please release-please bot mentioned this pull request Mar 21, 2023
@karlhorky
Copy link
Contributor

karlhorky commented Mar 21, 2023

Nice, thanks for this @Lightning00Blade and @OrKoN ! 🙌 From this PR from the bot it looks like it will be released in puppeteer-core@19.8.0?

@cage1618
Copy link

This commit seems to result in continuously adding new request/response event listeners, ultimately leading to memory leaks. Please confirm this, thank you. @Lightning00Blade @OrKoN

@cage1618
Copy link

This commit seems to result in continuously adding new request/response event listeners, ultimately leading to memory leaks. Please confirm this, thank you. @Lightning00Blade @OrKoN

Here is the snapshot:#5893 (comment)

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.

[Bug]: Timeout error while waiting for network idle [Bug]: page.waitForNetworkIdle timeout inconsistently
4 participants