Open Bug 1813529 Opened 1 year ago Updated 2 months ago

Firefox does not switch automatically between Light <> Dark theme if it was closed when OS theme is changed

Categories

(Fenix :: Design System and Theming, defect)

Firefox 109
All
Android
defect

Tracking

(firefox109 unaffected, firefox110 unaffected, firefox111 affected, firefox123 affected, firefox124 affected, firefox125 affected)

Tracking Status
firefox109 --- unaffected
firefox110 --- unaffected
firefox111 --- affected
firefox123 --- affected
firefox124 --- affected
firefox125 --- affected

People

(Reporter: andrey, Unassigned)

References

Details

(Whiteboard: [qa-triaged] [mobile-ux-bug])

Attachments

(1 file)

Steps to reproduce:

Originally reported at: https://github.com/mozilla-mobile/fenix/issues/27568

  1. Setup Firefox for Android to switch automatically between Light <> Dark theme according to the Android
  2. Close Firefox
  3. Switch to the other theme on Android (from Light to Dark or vice-versa)
  4. Open Firefox again

Actual results:

When Firefox opens, it won't automatically switch to the right theme as it should. For example, if it was in the Light theme the last time you opened, it won't automatically switch to the Dark theme, even if Android is on Dark theme and Firefox is setup to follow the OS.

When Firefox is kept open during the switch, it works as expected. But it doesn't work if Firefox was closed during the OS theme switch.

This bug happens independently of how the theme was changed. If you change it manually, it happens. If you have you phone setup to automatically switch to Dark theme at night and back to Light during the day, this problem also happens.

Expected results:

When opening, Firefox should detect which theme is being set on Android and switch accordingly.

QA, can you please test whether this bug is specific to Android 12?

Andrey saw this bug on a Samsung Galaxy S20 FE | SM-G780G/DS device running Android 12.

Severity: -- → S3
Flags: qe-verify+
Attached video trim.mp4

We were able to reproduce this issue on a Samsung Note10 (Android 12) only on the latest Fenix Nightly 111.0a1 from 2/7, and intermittently on a Samsung A13 (Android 12).
Not reproducible on Oppo Reno 6 (Android 12).

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: qe-verify+
Whiteboard: [qa-triaged]

(In reply to Chris Peterson [:cpeterson] from comment #1)

QA, can you please test whether this bug is specific to Android 12?

Andrey saw this bug on a Samsung Galaxy S20 FE | SM-G780G/DS device running Android 12.

I have A52 with Android 13 OneUI 5.1 and i still have this issue.
Firefox stable v111

Still happens on Samsung Galaxy Fold 4, Android 13/OneUI 5.1. Firefox 112

This also seems to happen when the phone has switched theme with Firefox in the background. (Not killed in app switcher)

I'm still dealing with this bug every single day. I hope to see it fixed at some point! 🙂

I can confirm as well that is happens for me too. For maybe a year or longer. This happens on a Samsung Galaxy S21 Ultra with android 14 and the latest version of regular Firefox. I have to set the battery management or Firefox to limited so that the app will automatically restart every time i open it so the app is refreshed and will apply the correct theme. A fix would be highly appreciated.

Still seeing it on v.123

Yes, same here. Like described my earlier post.

Still facing this issue in Galaxy S21 using latest Firefox for Android. Is there any way we could escalate this for fixing? It's been around for more than a year

You can temporarily fix this issue though by setting the battery optimization to limited for Firefox. Then Firefox will close in the background and therefore always refresh when opening the app. This will ensure that the preferred mode is enabled. If you have a fast phone, and the galaxy s21 is that, then you won't really notice the difference.

Component: General → Design System and Theming
Whiteboard: [qa-triaged] → [qa-triaged] [mobile-ux-bug]

I don't have exactly the same problem as here, and I can't reproduce it by following the description above. However, I have encountered a similar problem, that is, the application will occasionally not follow the system light and dark mode without finding the trigger of the problem.
My device is Android 14 with Firefox 124 version.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: