RESOLVED MOVED 206953
[GTK] Wrong web view background color when using dark GTK theme
https://bugs.webkit.org/show_bug.cgi?id=206953
Summary [GTK] Wrong web view background color when using dark GTK theme
Michael Catanzaro
Reported 2020-01-29 11:21:52 PST
Created attachment 389165 [details] Screenshot demonstrating bug Since r255342, we attempt to use only the light GTK theme for rendering in the web process. However, we fail when displaying the first two of these simple test cases: https://cassidyjames.com/dark-demo/ https://cassidyjames.com/dark-demo/mixed.html https://cassidyjames.com/dark-demo/dark.html Screenshot of the first test page attached. The page background should be light, not dark.
Attachments
Screenshot demonstrating bug (63.40 KB, image/png)
2020-01-29 11:21 PST, Michael Catanzaro
no flags
Michael Catanzaro
Comment 1 2020-01-29 14:32:52 PST
It's caused by EphyWebView's style_updated_cb(). Ephy will need to stop setting its own background color.
Michael Catanzaro
Comment 2 2020-01-29 15:06:22 PST
Removing this call from Epiphany reintroduces https://gitlab.gnome.org/GNOME/epiphany/issues/960. We need WebKit to use the UI process background color as its default background color temporarily, just until web content loads, but not longer than that....
Michael Catanzaro
Comment 3 2020-01-30 02:47:55 PST
Note You need to log in before you can comment on or make changes to this bug.