-
Notifications
You must be signed in to change notification settings - Fork 15k
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
WebContents background color is not set early enough in some cases. #27592
Comments
Move it from LoadURL to RenderViewCreated which is present in all window creation cases and is called early enough to be relevant from user prespective and after RenderWidgetHostView is already present.
Confirmed: when I press the Tested with 9.0.0, 11.0.0, and 12.0.0-beta.20 on Ubuntu 20.10 |
Move it from LoadURL to RenderViewCreated which is present in all window creation cases and is called early enough to be relevant from user prespective and after RenderWidgetHostView is already present.
Move it from LoadURL to RenderViewCreated which is present in all window creation cases and is called early enough to be relevant from user prespective and after RenderWidgetHostView is already present.
…27942) Move it from LoadURL to RenderViewCreated which is present in all window creation cases and is called early enough to be relevant from user prespective and after RenderWidgetHostView is already present. Co-authored-by: marekharanczyk <48673767+marekharanczyk@users.noreply.github.com>
I think the related changes added a blink of white color for If you add the This is reproducible in electron 11.4.x, but not in electron 11.3.0. I know, that cc @codebytere |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue. |
Preflight Checklist
Issue Details
Expected Behavior
Child window content background color set early before page loads.
Actual Behavior
Child window is white, then switch to background color, then page background color.
To Reproduce
https://gist.github.com/6710c5cd8ed5810fb5c796854d726c3a
Just click "Open child" button and look at what is displayed.
Screenshots
Additional Information
The text was updated successfully, but these errors were encountered: