-
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]: using exposeFunction on a page with an iframe pointing to a pdf causes hang #12172
Comments
This issue has an outdated Puppeteer version: |
22.6.2 not released at https://classic.yarnpkg.com/en/package/puppeteer yet |
Not able to reproduce on Mac with:
|
Also, not with using a file URL to a local file. Perhaps the issue is specific to Linux. |
Able to repro with a PDF served from a local http server. |
The workaround for now could be to filter out all iframe targets with url about:blank:
|
Very likely related to #10696 |
Minimal, reproducible example
Error string
no error (hangs)
Bug behavior
Background
This is in a suite of tests and causes the tests to hang
eoghanmurray/rrweb@845bf5c#diff-f822a25730eb990747d0f997cbcbf61789e7924c84988c09f3666935d5d6a577R624
Expectation
not to try to inject the 'test' function into the iframe document, as it isn't a regular javascript environment.
additionally, I expected it not to hang when failing to do so, but to have some sort of timeout to indicate that the injection failed to complete
Reality
tests hang
Puppeteer configuration file (if used)
No response
Puppeteer version
22.6.1
Node version
27.7.1
Package manager
yarn
Package manager version
1.2.3
Operating system
Linux
The text was updated successfully, but these errors were encountered: