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)
Firefox
New Tab Page
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).
Assignee | ||
Comment 1•4 years ago
|
||
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.
Updated•4 years ago
|
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
Comment 3•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox89:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•