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
Calling a exposed function inside an evaluateOnNewDocument function does not work on Chrome 70 #3106
Comments
Just noticed delaying execution of // ....
await page.evaluateOnNewDocument(() => {
setTimeout(() => {
logExposedFunction1()
}, 1)
})
// .... I can move on with my life now but still would like to know If I am doing something wrong or is it a bug |
Thanks @williamoliveira, That's a recent regression; the offender is https://crrev.com/578514 |
Awesome! thanks for the rapid work |
aslushnikov
added a commit
to aslushnikov/puppeteer
that referenced
this issue
Aug 23, 2018
This roll includes: - https://crrev.com/584293 - DevTools: execute scripts in addScriptToEvaluateOnLoad in order Fixes puppeteer#3106.
aslushnikov
added a commit
to aslushnikov/puppeteer
that referenced
this issue
Aug 28, 2018
This roll includes: - https://crrev.com/584293 - DevTools: execute scripts in addScriptToEvaluateOnLoad in order - https://crrev.com/585630 - DevTools: introduce Browser.grantPermissions References puppeteer#846. Fixes puppeteer#3106.
aslushnikov
added a commit
to aslushnikov/puppeteer
that referenced
this issue
Aug 29, 2018
This roll includes: - https://crrev.com/584293 - DevTools: execute scripts in addScriptToEvaluateOnLoad in order - https://crrev.com/585630 - DevTools: introduce Browser.grantPermissions - https://crrev.com/587156 - Revert "[Base] Use background mode for ThreadPriority::BACKGROUND threads (behind feature) (reland)." The "revert" patch fixes headless functionality on windows. References puppeteer#846. Fixes puppeteer#3106.
aslushnikov
added a commit
that referenced
this issue
Aug 30, 2018
This roll includes: - https://crrev.com/584293 - DevTools: execute scripts in addScriptToEvaluateOnLoad in order - https://crrev.com/585630 - DevTools: introduce Browser.grantPermissions - https://crrev.com/587156 - Revert "[Base] Use background mode for ThreadPriority::BACKGROUND threads (behind feature) (reland)." The "revert" patch fixes headless functionality on windows. References #846. Fixes #3106.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code works on Chorme/Chromium 69, "Hello from logExposedFunction1" and "Hello from logExposedFunction2" are logged to console, with Chrome 70 only "Hello from logExposedFunction2" is logged.
I noticed logging
logExposedFunction1
logsƒ () { [native code] }
andlogExposedFunction2
logs a js code from__puppeteer_evaluation_script__:2
Was there an API change around this? I did not see anything at the change log
The text was updated successfully, but these errors were encountered: