[Bug] Page contend does not automatically changed based on selected theme.
Steps to reproduce
- Go to https://kevinchen.co/blog/support-macos-mojave-dark-mode-on-websites/
- Tap on the 3dot menu > Settings > Theme and select Dark.
- Go back to the webpage.
Expected behavior
The page content is updated accordingly to reflect the change in the settings.
Actual behavior
The page content does not change into dark mode.
Device information
- Android device:
- Nexus 5 (Android 6.0.1)
- Google Pixel (Android 9)
- Fenix version: 1.0.1916 (#11061212)
┆Issue is synchronized with this Jira Task
@ekager saw that you committed a change to refresh a session when the theme changes - does this mean that the tab also reloads?
Curious about this because changing my desktop theme on desktop updates the prefers color scheme on pages without having to refresh.
It would be nice if this didn't require a refresh if so.
@yoasif this does do a page refresh when switching between light and dark mode.
@ekager There still seems to be an issue with this if using the option to auto switch the theme based on the battery saver/device theme. The page does not update in that case.
Just added a check that should update the page content when the theme auto changes
Verified on a Pixel 2 XL by enabling the battery saver option.