Open Bug 2055462 Opened 8 days ago Updated 1 day ago

Find bar text box no longer changes color when a lightweight theme is enabled

Categories

(Toolkit :: Themes, defect, P1)

Firefox 153
Desktop
All
defect

Tracking

()

ASSIGNED
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox-esr153 --- affected
firefox152 --- unaffected
firefox153 + affected
firefox154 --- affected
firefox155 --- affected

People

(Reporter: hiroshi, Assigned: jooliver)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [recomp][recomp-nova][acorntractors])

Attachments

(2 files)

Steps to reproduce

  1. Enable a theme other than System, Light, or Dark. — e.g. open Add-ons Manager > Themes and enable Firefox Alpenglow
  2. Open the find bar. — e.g. press Ctrl+F
  3. Type any text in the text box that is not present on the current page. — e.g. type \

Actual result

  • The text box background color does not change.

Expected result

  • The text box background color turns red.

Reproduced on

  • 153.0b13
  • 154.0a1 (2026-07-16)

Not reproduced on

  • 152.0.6

Tested on

  • Gentoo Linux (KDE Plasma 6, X11)
  • Windows 10 (VirtualBox VM)

Regression range

There is another symptom with the same root cause, explained in comment 2.

Steps to reproduce another sympton

  1. Set accessibility.typeaheadfind.flashBar to 1 (the default) or a higher integer, if it is currently 0.
  2. Enable a theme other than System, Light, or Dark. — e.g. open Add-ons Manager > Themes and enable Firefox Alpenglow
  3. Open the find bar. — e.g. press Ctrl+F

Actual result

  • The text box background color does not change.

Expected result

  • The text box briefly flashes between a yellow background and the normal background a few times.

Additional notes

Each time the find bar is opened while accessibility.typeaheadfind.flashBar is 1 or higher, the text box flashes and the value is decremented by 1. Once it reaches 0, the text box no longer flashes. To check the flashing behavior multiple times, set it to a larger value in step 1.

These appear to be caused by the following change in Bug 2030722 (toolkit/themes/shared/findbar.css#62-113):

 .findbar-textbox {
   appearance: none;
-  background-color: var(--input-bgcolor, var(--toolbar-field-background-color));
-  color: var(--input-color, var(--toolbar-field-text-color));
+  background-color: var(--input-text-background-color);
+  color: var(--input-text-color);
+
+  :root[lwtheme] & {
+    background-color: var(--toolbar-field-background-color);
+    color: var(--toolbar-field-text-color);
+  }
+
   ...(omitted 31 lines, unchanged)...
 
   &[status="notfound"] {
     background-color: rgba(226, 40, 80, 0.3);
     color: inherit;
   }
 
   &[flash="true"] {
     background-color: rgba(255, 233, 0, 0.3);
     color: inherit;
   }
 }

The new selector :root[lwtheme] & has specificity 0-3-0 (one pseudo-class :root, one attribute selector [lwtheme] and one class selector for .findbar-textbox), which is higher than the 0-2-0 specificity of &[status="notfound"] and &[flash="true"] (one class selector plus one attribute selector each). As a result, regardless of source order, :root[lwtheme] & always overrides the "not found" and "flash" state colors whenever a lightweight theme is active.

OS: Unspecified → All
Hardware: Unspecified → Desktop
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(jooliver)
Keywords: regression
Regressed by: 2030722

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

Hello folks, I'm the REO for this week. Can we get a an assignee of this bug and appropriate S/P since it's affecting 153/154? Thank you.

Flags: needinfo?(mstriemer)

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

The bug is marked as tracked for firefox153 (release). However, the bug still isn't assigned.

:cbellini, could you please find an assignee for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(cbellini)
Blocks: nova-acorn
Severity: -- → S3
Flags: needinfo?(cbellini)
Priority: -- → P1
Whiteboard: [recomp-nova][acorntractors]
Assignee: nobody → jooliver
Status: NEW → ASSIGNED
Flags: needinfo?(jooliver)
Whiteboard: [recomp-nova][acorntractors] → [recomp][recomp-nova][acorntractors]
Flags: needinfo?(mstriemer)
  • Updates findbar textbox styles to use toolbar-field tokens more consistently
  • Adds nativeTheme values for toolbar-field tokens
  • Adds test to ensure that findbar textbox uses correct lwtheme values
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: