-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: NetworkManager._emitLoadingFinished/_emitLoadingFailed never called when ResponseReceivedExtraInfo follows ResponseReceived #8234
Comments
@josepharhar @OrKoN Can you please confirm this issue? |
This makes sense to me |
@josepharhar Want us to create a PR or do you guys want to tackle it? |
Please open a PR |
@josepharhar There you go. Sorry for the closed PR, needed to get my email right on the commit so that it matched my individual CLA. |
Any chance of a release with this fix in? :-) Puppeteer has been broken for me since v12 due to this. |
Thank you, excellent service ;-) |
I believe this is now closed? thanks a lot for the PR and the bug report! |
Bug description
Steps to reproduce the problem:
NetworkManager._emitLoadingFinished
is never called)Analysis
responseReceived
dev tools protocol event occurs,NetworkManager._onResponseReceived
is called. Sinceevent.hasExtraInfo == true
and theresponseReceivedExtraInfo
dev tools protocol event has not occurred,responseReceived
event is added toqueueEventGroup
responseRecievedExtraInfo
dev tools protocol event occurs,NetworkManager._onResponseReceivedExtraInfo
is called. SinceresponseReceived
dev tools protocol event is inqueueEventGroup
, theNetworkManager._emitResponseEvent
is called. SinceloadingFinished
dev tools protocol event has not occurred, theNetworkManager._emitLoadingFinished
is not calledloadingFinished
dev tools protocol event occurs,NetworkManager._onLoadingFinished
is called. SinceresponseReceived
dev tools protocol event is inqueueEventGroup
, theloadingFinished
dev tools protocol event is added to the event inqueueEventGroup
.NetworkManager._emitLoadingFinished
is not called.Side Effects
queueEventGroup
is never deleted.Potential Fix
queueEventGroup
afterNetworkManager._emitResponseEvent
is called inNetworkManager._onResponseReceivedExtraInfo
Puppeteer version
13.1.3, this issue exists in 12.0.0 and higher
Node.js version
17.3.1
npm version
8.3.0
What operating system are you seeing the problem on?
macOS
Related PRs
#7640
#7764
Relevant log output
The following logs are from "evaluate and log" breakpoints in Intellij at these locations:
The text was updated successfully, but these errors were encountered: