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
goto takes an increasing amount of time. #4449
Comments
Awesome repro! Thanks! @aslushnikov it looks like this is being caused by the addScriptToEvaluate on new document to ensure the secondary dom world exists. At first I thought we might be adding a new script every page load, but we only send the command once. However it takes longer to evaluate every run. |
Upstream fix is out for review: https://chromium-review.googlesource.com/c/chromium/src/+/1634416 |
DevTools protocol exposes a few protocol methods to create isolated worlds: - `Page.addScriptToEvaluateOnNewDocument` - `Page.createIsolatedWorld` Whenever a same-process navigation happens, these worlds are not desotryed - so instead of re-creating the worlds per se, we should re-create just WindowProxies. This was reported as puppeteer/puppeteer#4449 R=caseq Change-Id: I1056f64324a8c4f3c7a9f4a1f443b39a3b48cd29 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1634416 Reviewed-by: Andrey Kosyakov <caseq@chromium.org> Reviewed-by: Yuki Shiino <yukishiino@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Andrey Lushnikov <lushnikov@chromium.org> Cr-Commit-Position: refs/heads/master@{#666392}
This roll includes: - https://crrev.com/666392 - DevTools: do not re-create DOMWrapperWorlds on same-process navigation Fix puppeteer#4449
This roll includes: - https://crrev.com/666392 - DevTools: do not re-create DOMWrapperWorlds on same-process navigation Fix #4449
Awesome! Thanks! |
Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
What is the expected result?
Time to process the page should remain stable
What happens instead?
Duration increases and it eventually times out:
The text was updated successfully, but these errors were encountered: