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: resolve navigation requests when request fails #9178

Merged
merged 1 commit into from Oct 28, 2022

Conversation

OrKoN
Copy link
Collaborator

@OrKoN OrKoN commented Oct 27, 2022

#8768 fixes flakiness in handling navigations but it didn't account for the fact that subsequent navigation requests could be aborted via the request interception. In that case, the navigationResponseReceived promise would never be resolved. This PR adds a listener for the failed network requests and resolves the promise if the network request has failed. Adding test coverage for this seems tricky, as the reproduction depends on timing of the second navigation request.

Closes #9175

@OrKoN OrKoN force-pushed the fix-client-redirect branch 2 times, most recently from 0049f27 to feb9aa9 Compare October 28, 2022 05:40
@OrKoN OrKoN requested a review from jrandolf October 28, 2022 05:43
@OrKoN OrKoN enabled auto-merge (squash) October 28, 2022 06:43
@jrandolf jrandolf merged commit c11297b into main Oct 28, 2022
@jrandolf jrandolf deleted the fix-client-redirect branch October 28, 2022 07:56
This was referenced Oct 28, 2022
OrKoN pushed a commit that referenced this pull request Nov 2, 2022
🤖 I have created a release *beep* *boop*
---


<details><summary>puppeteer: 19.2.1</summary>

### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * puppeteer-core bumped from 19.2.0 to ^19.2.1
</details>

<details><summary>puppeteer-core: 19.2.1</summary>

##
[19.2.1](puppeteer-core-v19.2.0...puppeteer-core-v19.2.1)
(2022-10-28)


### Bug Fixes

* resolve navigation requests when request fails
([#9178](#9178))
([c11297b](c11297b)),
closes [#9175](#9175)
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
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]: page.goto hangs on aborted client side redirect
2 participants