Open Bug 1976652 Opened 1 year ago Updated 1 year ago

Websites loaded in sidebar do not honor "Website Appearance" light/dark setting (prefers-color-scheme) or "content_color_scheme" theme property and instead get overridden by browser chrome color scheme

Categories

(Firefox :: Theme, defect, P3)

Firefox 142
defect

Tracking

()

Tracking Status
firefox142 --- affected

People

(Reporter: ke5trel, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

STR:

  1. Enable the Dark theme.
  2. In settings, change "Website Appearance" from Auto to Light (layout.css.prefers-color-scheme.content-override = 1).
  3. Open ChatGPT in sidebar (Ctrl+Alt+X).
    or
  4. Install Side View extension and open a website in sidebar that has a dark mode.

Expected:
Sidebar website content is light.

Actual:
Sidebar website content is dark, hard-coded by theme.

The AI chatbot sidebar should not be confused with being part of the browser, it is external content that does not honor sidebar text or background colors, only the sidebar light/dark scheme.

Workarounds:

  1. Enable fingerprinting protection (FPP) to force light scheme:
    privacy.fingerprintingProtection = true
    privacy.fingerprintingProtection.overrides = -AllTargets,+CSSPrefersColorScheme
  2. Install an extension (does not work for AI chatbot):
    Dark Mode - Night Eye with "Default mode" set to "Normal" can force Side View to be light.

Extensions that don't work in the sidebar:

See Also: → 1974988

We discussed this as a team and are considering options, but are not entirely sure of what to do at the moment. Hoping that at some point someone can pick this up.

Priority: -- → P4
Severity: -- → N/A
Priority: P4 → P3

The severity field is not set for this bug.
:jules, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jules)
Severity: N/A → S4
Flags: needinfo?(jules)

Similarly, the webextension theme property content_color_scheme does not work for web content in the sidebar. Only the color_scheme property works, except for vertical tabs (Bug 1974988).

content_color_scheme
Determines which color scheme is applied to the content (for example, built-in pages and preferred color scheme for web pages). Overrides color_scheme.

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/theme

Summary: Websites loaded in sidebar do not honor "Website Appearance" light/dark setting (prefers-color-scheme) and get overridden by theme → Websites loaded in sidebar do not honor "Website Appearance" light/dark setting (prefers-color-scheme) or "content_color_scheme" theme property and instead get overridden by browser chrome color scheme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: