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: do not use loaderId for lifecycle events #8353

Merged
merged 1 commit into from May 17, 2022
Merged

Conversation

OrKoN
Copy link
Collaborator

@OrKoN OrKoN commented May 16, 2022

This PR works around the upstream bug crbug.com/1325782. Previously Puppeteer relied on the presence of the loaderId to determine the kind of navigation and expected events. It does not look like there is a reason to do so: instead, we could see what events we get and proceed accordingly.

@OrKoN OrKoN changed the title fix: do not use loaderId for Lifecycle events fix: do not use loaderId for lifecycle events May 17, 2022
@OrKoN OrKoN requested a review from jrandolf May 17, 2022 06:22
@jrandolf jrandolf enabled auto-merge (squash) May 17, 2022 10:30
@jrandolf jrandolf disabled auto-merge May 17, 2022 10:30
Copy link
Contributor

@jrandolf jrandolf left a comment

Choose a reason for hiding this comment

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

Is it possible to add tests?

@OrKoN
Copy link
Collaborator Author

OrKoN commented May 17, 2022

There is no change in behaviour, it fixes the failing existing tests (see https://github.com/puppeteer/puppeteer/actions/runs/2330686327)

@jrandolf jrandolf self-requested a review May 17, 2022 10:33
@OrKoN OrKoN enabled auto-merge (squash) May 17, 2022 12:27
@OrKoN OrKoN merged commit 7107d2d into main May 17, 2022
@OrKoN OrKoN deleted the fix-lifecycle-event branch May 17, 2022 13:27
OrKoN added a commit that referenced this pull request May 19, 2022
jrandolf pushed a commit that referenced this pull request May 19, 2022
OrKoN added a commit that referenced this pull request May 19, 2022
OrKoN added a commit that referenced this pull request May 25, 2022
OrKoN added a commit that referenced this pull request May 25, 2022
jrandolf pushed a commit that referenced this pull request May 25, 2022
OrKoN added a commit that referenced this pull request May 30, 2022
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.

None yet

2 participants