Closed Bug 1704164 Opened 4 years ago Closed 4 years ago

Dark mode colors set too late in activity stream startup

Categories

(Firefox :: New Tab Page, defect)

defect

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: alexical, Assigned: alexical)

References

Details

(Whiteboard: [fxperf])

Attachments

(1 file)

On my system I see a white flash between about:blank and the fully loaded about:home. If I force the activity stream bundle js to immediately send the "LightweightTheme:Set" event, the white flash goes away. componentWillMount on ASRouterUISurface runs after first paint - we need to ensure the css variable for the background color is set prior to first paint. This feels particularly noticeable for me with the skeleton UI enabled (default on Nightly).

This prevents a white flash in about:home in dark mode. Particularly obvious
with the skeleton UI enabled. I don't see a reason why we need to do this on
pageshow, if we start doing it on DOMContentLoaded, given that we listen for
theme change events anyway.

Assignee: nobody → dothayer
Status: NEW → ASSIGNED
Pushed by dothayer@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dc67a43df738 Apply darkmode theme to newtab before first paint r=mconley
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: