-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Set initial loading content page color to non-white when using dark mode #6313
Comments
@cpeterso I think Fenix should just follow the theme that's chosen by the user though. |
From Bugzilla:
|
Chatted with the GV team on Riot and unfortunately the above solution likely does not work anymore with WebRender enabled. FxR uses a dummy surface with the correct color until they get a |
Here's a screencast of what this looks like, FWIW: There's a flash of white (due to this bug) at around 0:04, while the keyboard is disappearing. |
There was a gif in #10158 |
Opened AC issue mozilla-mobile/android-components#6757 |
@ekager Hey is there any update on this? I see you submitted 2 commits for this. Does that mean it's being improved? |
@Kreuger yeah I have a work in progress that will hide the web content until the content appears so it should improve the behavior a bit. Unfortunately on a site that doesn't support dark mode and is very white (ie CNN) it'll still be jarring when the content appears |
@ekager Ok thanks for the update! |
All loading screens all white all the time with all dark themes. |
@ekager Not sure if this is the right issue to report it, but -- I just updated to the latest Fenix Nightly:
The hidden pref to "Wait until first paint to show page content" seems to be gone in this build. My understanding from reading this issue and related Bugzilla issues is that this was eventually intended once a better fix had been implemented in GeckoView/Android Components etc. My hope was that meant the fix had made it to Nightly -- but unfortunately, I'm still noticing white flashes all over the place. Loading pages, opening new tabs (sometimes) -- it's happening in lots of places it didn't when the experimental feature was still available. Just FYI, since it seems like there is work in this area happening right now. |
Yes, this is expected we want to remove the hacks that the hidden pref was working around. Instead, we can now change the "clear color" of the engine, but there is still currently a short flash. One followup issue filed is mozilla-mobile/android-components#8752 |
Verified as fixed on Firefox Preview Nightly 201102 (Build #2015773227). Devices used:
|
Shouldn't page color match Firefox's dark UI color? Right now they are two very different shades of gray. |
My eyes thank you every day, @ekager. |
@crisalis2 yes, open a new issue and reference this one in it. |
Why/User Benefit/User Problem
Currently opening a new page temporarily shows a pure white page before loading actual content regardless of the browser theme.
What/Requirements
Fenix does not give a way to control this while on Windows this can be controlled by
browser.in-content.dark-mode
pref (which is on by default on Nightly 71 and makes the page gray).The white flash is the page clear color, which Fenix can already set clear color using GV API
CompositorController.setClearColor
.Fenix clear color should probably change the clear color depending on Fenix's or Android's dark mode settings.
This bug was originally filed in Bugzilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=1589576
Acceptance Criteria (how do I know when I’m done?)
Opening a new page when dark mode is enabled does not flash a pure white page before loading actual content.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: