-
Notifications
You must be signed in to change notification settings - Fork 9k
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]: Evaluate may hang if frame changes to OOPIF #10715
Comments
The issue has been labeled as confirmed by the automatic analyser. |
Looks like there is a race condition here because iframe navigation is asynchronous. We should at least error here. Adding |
@liamdalg are you still able to reproduce the issue using the latest version? I am not seeing any flakiness in a thousand runs:
|
Looks like its fixed on my end too. It no longer hangs as of |
Minimal, reproducible example
Error string
no error
Bug behavior
Background
In new headless, if a call to
frame.evaluate
races against the frame changing from a normal iframe to an OOPIF, then it may hang. The minimal example attached requires the two attached files to be available atlocalhost:8000
; I've been running it withpython3 -m http.server
. Note that this is quite flaky given it's a race condition. On my machine it triggers a hang around 20% of the time.HTML Files
oopif.log
Possibly related to my other bug report #10696.
For now, I've been avoiding this by running with
--disable-features=SitePerProcess
.Expectation
Either:
Error: Execution context was destroyed, most likely because of a navigation
to be thrown.Reality
frame.evaluate
hangs indefinitely.Puppeteer configuration file (if used)
No response
Puppeteer version
21.0.2
Node version
18.16.1
Package manager
npm
Package manager version
9.5.1
Operating system
Windows
The text was updated successfully, but these errors were encountered: