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]: webview tag background color do not follow browser window when reload webview #36417

Closed
3 tasks done
PerfectPan opened this issue Nov 21, 2022 · 1 comment · Fixed by #36920
Closed
3 tasks done
Assignees
Labels
16-x-y 17-x-y 18-x-y 19-x-y 20-x-y 21-x-y 22-x-y 23-x-y bug 🪲 component/webview has-repro-gist Issue can be reproduced with code at https://gist.github.com/ status/confirmed A maintainer reproduced the bug or agreed with the feature

Comments

@PerfectPan
Copy link

Preflight Checklist

Electron Version

21.2.0

What operating system are you using?

macOS

Operating System Version

macOS Big Sur 11.4

What arch are you using?

x64

Last Known Working Electron version

11.4.5

Expected Behavior

Recently, we upgraded our electron version from 11.4.5 to 21.2.0 and met a problem.
The final problem I located is that webview's background color do not follow browser window when reload webview. So it caused from white -> red instead of browser windows' bg color -> red in my demo.
CleanShot 2022-11-21 at 21 07 47

Actual Behavior

CleanShot 2022-11-21 at 21 10 09

Testcase Gist URL

https://gist.github.com/PerfectPan/100900b7758293b8f72b23d0babdb1cc

Additional Information

In our situation, we use webview to load chrome devtools frontend. This app styles background color asynchronous, so we met this problem. A hack way maybe we modify the inspect.html to hardcode our background color in it. But we want to know if there are any other way to solve this.

@dsanders11 dsanders11 added component/webview status/confirmed A maintainer reproduced the bug or agreed with the feature has-repro-gist Issue can be reproduced with code at https://gist.github.com/ 16-x-y 17-x-y 18-x-y 19-x-y 20-x-y 21-x-y 22-x-y 23-x-y labels Jan 14, 2023
@dsanders11
Copy link
Member

It looks like this first repros in 16.2.8, due to #33546.

cc @codebytere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
16-x-y 17-x-y 18-x-y 19-x-y 20-x-y 21-x-y 22-x-y 23-x-y bug 🪲 component/webview has-repro-gist Issue can be reproduced with code at https://gist.github.com/ status/confirmed A maintainer reproduced the bug or agreed with the feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants