fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] Page contend does not automatically changed based on selected theme.

Open bsurd opened this issue 7 years ago • 4 comments

Steps to reproduce

  1. Go to https://kevinchen.co/blog/support-macos-mojave-dark-mode-on-websites/
  2. Tap on the 3dot menu > Settings > Theme and select Dark.
  3. 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

bsurd avatar Apr 16 '19 14:04 bsurd

@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 avatar Apr 16 '19 21:04 yoasif

@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.

bsurd avatar Apr 25 '19 11:04 bsurd

Just added a check that should update the page content when the theme auto changes

ekager avatar Apr 25 '19 23:04 ekager

Verified on a Pixel 2 XL by enabling the battery saver option.

kbrosnan avatar Apr 26 '19 05:04 kbrosnan