Bug 206953 - [GTK] Wrong web view background color when using dark GTK theme
Summary: [GTK] Wrong web view background color when using dark GTK theme
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2020-01-29 11:21 PST by Michael Catanzaro
Modified: 2020-01-30 02:47 PST (History)
3 users (show)

See Also:

Screenshot demonstrating bug (63.40 KB, image/png)
2020-01-29 11:21 PST, Michael Catanzaro
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 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:


Screenshot of the first test page attached. The page background should be light, not dark.
Comment 1 Michael Catanzaro 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.
Comment 2 Michael Catanzaro 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....
Comment 3 Michael Catanzaro 2020-01-30 02:47:55 PST
Workaround: https://gitlab.gnome.org/GNOME/epiphany/merge_requests/559