Closed Bug 2045752 Opened 3 months ago Closed 3 months ago

Browser theme light/dark token colors are applied to in-content pages

Categories

(Toolkit :: Themes, defect, P3)

defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox151 --- unaffected
firefox152 --- unaffected
firefox153 --- fixed
firefox154 --- fixed

People

(Reporter: mstriemer, Assigned: mstriemer)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [recomp])

Attachments

(4 files, 1 obsolete file)

In bug 2030722 more design tokens were moved from browser-colors.css to the design tokens. However the browser-colors.css file was only being loaded in the chrome, and the design tokens are loaded chrome/in-content. This means the browser theme can apply in content which is tweaking our dark mode button colours to be too dark

  1. Ensure browser.theme.native-theme=false
  2. Use dark mode through any method
    • OS dark mode with System theme
    • Dark theme
    • Appearance > Website appearance > Dark

Expected results: buttons are lighter than the background (currentColor 7%)
Actual results: buttons are darker than the background (rgba(0, 0, 0, 0.33))

Set release status flags based on info from the regressing bug 2030722

:jooliver, since you are the author of the regressor, bug 2030722, could you take a look?

For more information, please visit BugBot documentation.

Assignee: nobody → mstriemer
Attachment #9595403 - Attachment description: WIP: Bug 2045752 - Part 1: Ensure brand overrides browser-theme design tokens r?#recomp-reviewers! → Bug 2045752 - Part 1: Ensure brand overrides browser-theme design tokens r?#recomp-reviewers!
Attachment #9595404 - Attachment description: WIP: Bug 2045752 - Part 2: Build design tokens r?#recomp-reviewers! → Bug 2045752 - Part 2: Build design tokens r?#recomp-reviewers!

This adds some nativeTheme values for Nova since those were looking a
little wonky with the other Figma changes.

Attachment #9595404 - Attachment is obsolete: true
Pushed by mstriemer@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a8a84e6b4b19 https://hg.mozilla.org/integration/autoland/rev/7ce92fa7d30e Part 1: Ensure brand overrides browser-theme design tokens r=desktop-theme-reviewers,tgiles,maxx https://github.com/mozilla-firefox/firefox/commit/7bd4deced0c9 https://hg.mozilla.org/integration/autoland/rev/eb862bfd00ff Part 2: Refactor color tokens with nativeTheme r=desktop-theme-reviewers,tgiles
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch

The patch landed in nightly and beta is affected.
:mstriemer, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(mstriemer)
Regressions: 2049817
Regressions: 2049847
See Also: → 2050245
Attachment #9601359 - Flags: approval-mozilla-beta?

This adds some nativeTheme values for Nova since those were looking a
little wonky with the other Figma changes.

Original Revision: https://phabricator.services.mozilla.com/D306336

Attachment #9601361 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Dark theme for about: pages has incorrect button colours on Window/macOS
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: Reverts the CSS design tokens for about: pages to their old values
  • String changes made/needed?: No
  • Is Android affected?: no

This patch seems to have caused multiple regressions, do we want to uplift as it is now? I wouldn't want to fix a regression in 153 and add all to this release all the regressions listed here.

Those are all Nova regressions. This should be fine for 153 non-Nova

Flags: needinfo?(mstriemer)
Attachment #9601359 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9601361 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: needinfo?(jooliver)
Blocks: 2060002
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: