[Bug]: webview tag background color do not follow browser window when reload webview #36417
Closed
3 tasks done
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
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.
Actual Behavior
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.
The text was updated successfully, but these errors were encountered: