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: use LazyArg for puppeteer utilities #9575

Merged
merged 1 commit into from
Jan 26, 2023
Merged

fix: use LazyArg for puppeteer utilities #9575

merged 1 commit into from
Jan 26, 2023

Conversation

jrandolf
Copy link
Contributor

This PR fixes the following edge case:

  • const oldPromise = world.puppeteerUtil.
  • setContext occurs but context is immediately destroyed, i.e. world.#puppeteerUtil === oldPromise is not resolved.
  • clearContext occurs due to destruction, i.e. world.#puppeteerUtil is replaced (world.#puppeteerUtil !== oldPromise).
  • oldPromise never resolves.

@jrandolf jrandolf changed the title fix: remove puppeteer utility promise on clearContext only on resolution chore: use LazyArg for puppeteer utilities Jan 26, 2023
@OrKoN OrKoN changed the title chore: use LazyArg for puppeteer utilities fix: use LazyArg for puppeteer utilities Jan 26, 2023
@OrKoN OrKoN merged commit 496658f into main Jan 26, 2023
@OrKoN OrKoN deleted the fix/1 branch January 26, 2023 07:56
@release-please release-please bot mentioned this pull request Jan 26, 2023
OrKoN added a commit that referenced this pull request Jan 26, 2023
OrKoN added a commit that referenced this pull request Jan 26, 2023
@release-please release-please bot mentioned this pull request Jan 26, 2023
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