Skip to content
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]: In Electron 19, iframe inside a browserWindow has big content render lag compared with DOM content when in put background or invisible. #41562

Open
3 tasks done
yurychika opened this issue Mar 12, 2024 · 2 comments
Labels
blocked/need-info ❌ Cannot proceed without more information bug 🪲

Comments

@yurychika
Copy link

yurychika commented Mar 12, 2024

Preflight Checklist

Electron Version

19.0.10

What operating system are you using?

Windows

Operating System Version

Windows 10

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

When browser window is not visible and put in background, the iframe inside it should still render correctly.
When browser window is focused again, the iframe should render immediately showing the up-to-date content.

Actual Behavior

When browser window is not visible and put in background, the JS is excuted correctly and we could see log that React widget's hook is triggered with correct prop.

When browser window is focused again, the iframe spend more than 10 to 30 s to render the page to the correct state. Which makes me feel that somehow the browserWindow or iframe is sleeping and spend long time to get back to normal.

This is not always reproducible, and has around 10% chances to be hit. The app inside the iframe is a ticking app and update itself pretty frequently.

Testcase Gist URL

No response

Additional Information

Wonder if it'sto be related to https://issues.chromium.org/issues/40786336.

@yurychika yurychika changed the title [Bug]: In Electron 19, iframe inside a browserWindow has big content render lag compared with DOM content when in background. [Bug]: In Electron 19, iframe inside a browserWindow has big content render lag compared with DOM content when in put background or invisible. Mar 12, 2024
@codebytere
Copy link
Member

@yurychika Electron 19 is no longer supported and has not been for some time. Unless this issue is demonstrated to occur on a currently supported version it will be closed in 10 days.

@codebytere codebytere added the blocked/need-info ❌ Cannot proceed without more information label Mar 12, 2024
@yurychika
Copy link
Author

@codebytere thanks for the quick response!
Is there any workaround for this issue? Or is there any similar reports? If we suspected it's realted to https://issues.chromium.org/issues/40786336, is there an easy way to turn this feature off in electron 19 which seems to be using the chrome 102 which is the same version mentioned in the previous link.

I'm asking since we are not in a position to upgrade to newer version for now, while we need the issue to be solved for the clients.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/need-info ❌ Cannot proceed without more information bug 🪲
Projects
None yet
Development

No branches or pull requests

2 participants