Firefox on Windows with mismatched system theme (dark mode OS, light mode FF) loads a new tab with wrong colors temporarily
Categories
(Firefox :: Theme, defect, P3)
Tracking
()
People
(Reporter: mkshadoff, Unassigned)
References
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0
Steps to reproduce:
- Start on dark mode (also have system in dark mode)
- Switch to light mode
Actual results:
When loading Firefox will sometimes briefly appear in dark mode, and then transition to light mode
Expected results:
Firefox should load with the correct theme intially
Updated•2 years ago
|
Also my OS, windows, is in dark mode, in case this is relevant
Same sort of thing happens on the mobile version of Firefox on Android, version 126.0.1.
I think this is caused by the system theme fighting with Firefox in some way as setting both the system theme and firefox to light mode fixes the issue on android.
However, setting only Firefox to light mode causes loading screens to occasionally use the light theme.
(In reply to mkshadoff from comment #2)
Same sort of thing happens on the mobile version of Firefox on Android, version 126.0.1.
I think this is caused by the system theme fighting with Firefox in some way as setting both the system theme and firefox to light mode fixes the issue on android.However, setting only Firefox to light mode causes loading screens to occasionally use the light theme.
I thought this only happened when device is in dark theme, but I changed it to light theme and it still happens occasionally
Comment 5•2 years ago
|
||
The severity field is not set for this bug.
:sfoster, could you have a look please?
For more information, please visit BugBot documentation.
Comment 6•2 years ago
|
||
:emilio, does this ring any bells?
Comment 7•2 years ago
|
||
We should split this into two, the android bit is by necessity different to Windows.
Can you post a screencast on Windows? I can't quite see it on Nightly, but it might depend on the machine's speed or I might be doing something wrong.
Maybe we're calling UpdateDarkModeToolbar too early? Or maybe you're seeing the XUL pre-skeleton UI and we don't store the right preference there (something like here or so?
Moving to windows for now. I'll make a clone for Android.
Comment 8•2 years ago
|
||
Hello!
I am not able to reproduce this issue on the 127.0.1 version of Firefox or latest versions.
Are you still able to reproduce this on your end?
Can you provide a video in which you also have the OS theme settings available?
Thank you!
Updated•2 years ago
|
(In reply to Emilio Cobos Álvarez (:emilio) from comment #7)
We should split this into two, the android bit is by necessity different to Windows.
Can you post a screencast on Windows? I can't quite see it on Nightly, but it might depend on the machine's speed or I might be doing something wrong.
Maybe we're calling
UpdateDarkModeToolbartoo early? Or maybe you're seeing the XUL pre-skeleton UI and we don't store the right preference there (something like here or so?Moving to windows for now. I'll make a clone for Android.
I can't reproduce it consistently enough to get a screencast of the bug on windows, it only happens around 1/30 times. All you have to do is open firefox to cause the bug, but the skeleton loads in dark for about 0.5 seconds and then switches to light mode
| Comment hidden (duplicate) |
| Reporter | ||
Comment 11•2 years ago
|
||
(In reply to Virgil Sangerean from comment #8)
Hello!
I am not able to reproduce this issue on the 127.0.1 version of Firefox or latest versions.
Are you still able to reproduce this on your end?
Can you provide a video in which you also have the OS theme settings available?
Thank you!
(In reply to Emilio Cobos Álvarez (:emilio) from comment #7)
We should split this into two, the android bit is by necessity different to Windows.
Can you post a screencast on Windows? I can't quite see it on Nightly, but it might depend on the machine's speed or I might be doing something wrong.
Maybe we're calling
UpdateDarkModeToolbartoo early? Or maybe you're seeing the XUL pre-skeleton UI and we don't store the right preference there (something like here or so?Moving to windows for now. I'll make a clone for Android.
My computer is also quite fast, and only a few years old so it may be a loading speed issue
Comment 12•2 years ago
|
||
For clarity: has this happened —
- when opening a new Firefox tab?
- when opening a new Firefox window?
- only when starting a new instance of Firefox?
Separately: can you reproduce this on the latest Firefox Nightly? (There have been some recent changes to window-creation — and specifically the initial skeleton UI's drawing — which shouldn't affect this, but might anyway.)
| Reporter | ||
Comment 13•2 years ago
|
||
(In reply to Ray Kraesig [:rkraesig] from comment #12)
For clarity: has this happened —
- when opening a new Firefox tab?
- when opening a new Firefox window?
- only when starting a new instance of Firefox?
Separately: can you reproduce this on the latest Firefox Nightly? (There have been some recent changes to window-creation — and specifically the initial skeleton UI's drawing — which shouldn't affect this, but might anyway.)
Still happens on nightly, only when creating new tab. It happens about half the time
Used to happen on main firefox whenever opening app, that seems to be fixed.
Comment 14•2 years ago
•
|
||
(In reply to mkshadoff from comment #13)
Still happens on nightly, only when creating new tab. It happens about half the time
This probably isn't a Widget: Win32 bug, then — the window's already established, and I'm pretty sure we're just delegating to cross-platform drawing routines at this point. I'm not sure who would be responsible, though. — possibly someone in DOM. :emilio, do you have a clearer idea?
Used to happen on main firefox whenever opening app, that seems to be fixed.
This, on the other hand, was a Widget: Win32 bug (specifically bug 1824053). (EDIT: Although the fix is only in Fx 129+, so it hasn't propagated to Release yet.)
Comment 15•2 years ago
|
||
Still happens on nightly, only when creating new tab. It happens about half the time
Would you be able to screencast that? I can't seem to repro that either. Are you using a custom newtab page or something?
Moving to theme for now, but hard to know where it should go without knowing more details... Also that shouldn't be windows-specific...
| Reporter | ||
Comment 17•2 years ago
|
||
(In reply to mkshadoff from comment #16)
Created attachment 9412058 [details]
Nightly flash warning.mp4Here is the bug happening on nightly
Also I don't think I'm using a custom new page
Comment 18•2 years ago
|
||
Ok that's on Android. It seems like the desktop part of this is fixed, let's track the android bits in bug 1904462.
Description
•