Closed Bug 1762913 Opened 3 years ago Closed 3 years ago

Restore changing the color of toplevel menubar items in inactive windows on Windows

Categories

(Toolkit :: Themes, defect, P1)

All
Windows
defect
Points:
1

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox99 --- unaffected
firefox100 --- fixed
firefox101 --- fixed

People

(Reporter: dao, Assigned: sclements)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fidefe-2022-mr1-css-linting])

Attachments

(1 file)

Instead of removing the condition to stop catering for OS/2, bug 1757642 ended up removing the rule entirely: https://hg.mozilla.org/mozilla-central/rev/dbbcfe333292#l4.12

This looks to have been a misunderstanding of bug 1757642 comment 0.

Sarah, would you please look into this?

Flags: needinfo?(sclements)
See Also: → 1759510

Oops, I did indeed misread Gijs' comment. Will get a patch ASAP.

Flags: needinfo?(sclements)

I took a look at bug 1759510 and my patch removing the windows-specific menubar rule in bug 1757642 isn't the cause of that regression (there is however, a specific rule in that same file that needs to be wrapped in a not (prefers-contrast) media query. I can push a patch for that, but was this the only reason you filed this bug Dão (or did you want this rule I removed restored regardless)?

Flags: needinfo?(dao+bmo)
Has Regression Range: --- → yes

(In reply to Sarah Clements [:sclements] from comment #2)

I took a look at bug 1759510 and my patch removing the windows-specific menubar rule in bug 1757642 isn't the cause of that regression (there is however, a specific rule in that same file that needs to be wrapped in a not (prefers-contrast) media query. I can push a patch for that, but was this the only reason you filed this bug Dão (or did you want this rule I removed restored regardless)?

Sorry, I caused this confusion so let me jump in: I came across 1759510 randomly and it reminded me of this bug, so I linked the two, thinking that they were so related that perhaps we could easily address 1759510 at the same time. (and it does sound like you've figured out how we'd fix that bug!)

This bug needs fixing regardless (and ideally uplifted to Fx100 as it's a regression there), because without the rule that got removed in 1757642, the menubar items don't have the correct colour in inactive windows. Does that make sense?

Flags: needinfo?(dao+bmo) → needinfo?(sclements)

(In reply to :Gijs (he/him) from comment #3)

(In reply to Sarah Clements [:sclements] from comment #2)

I took a look at bug 1759510 and my patch removing the windows-specific menubar rule in bug 1757642 isn't the cause of that regression (there is however, a specific rule in that same file that needs to be wrapped in a not (prefers-contrast) media query. I can push a patch for that, but was this the only reason you filed this bug Dão (or did you want this rule I removed restored regardless)?

Sorry, I caused this confusion so let me jump in: I came across 1759510 randomly and it reminded me of this bug, so I linked the two, thinking that they were so related that perhaps we could easily address 1759510 at the same time. (and it does sound like you've figured out how we'd fix that bug!)

This bug needs fixing regardless (and ideally uplifted to Fx100 as it's a regression there), because without the rule that got removed in 1757642, the menubar items don't have the correct colour in inactive windows. Does that make sense?

Yes, thanks!

Flags: needinfo?(sclements)
Assignee: nobody → sclements
Status: NEW → ASSIGNED
Pushed by sclements@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1ca2447c80f4 Restore inactive menubar style for Windows r=Gijs
Whiteboard: [fidefe-2022-mr1-css-linting]
Whiteboard: [fidefe-2022-mr1-css-linting] → [fidefe-2022-mr1-css-linting]

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

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch

Comment on attachment 9270871 [details]
Bug 1762913 - Restore inactive menubar style for Windows r=Gijs

Beta/Release Uplift Approval Request

  • User impact if declined: Windows users will be affected since the menubar items don't have the correct color in inactive windows.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: In Windows, check that the menubar items have the expected/correct colour in inactive windows
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Its adding one style back that was removed by accident (the condition wrapping it was supposed to be removed, not the entire style) but we didn't catch until FX100 moved to Beta.
  • String changes made/needed: No
Attachment #9270871 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9270871 [details]
Bug 1762913 - Restore inactive menubar style for Windows r=Gijs

Approved for 100.0b3

Attachment #9270871 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

I don't see any menu bar style differences between a build with the fix vs one without it on an inactive window. Am I missing something here? Thank you.

Flags: needinfo?(sclements)

I took a look, and if I have a default windows theme, and default FX theme, I see another condition in browser.css that also supplies the rule this patch does. And in other themes (like Alpine and Dark), there are specific color overrides that negates the rule in this patch. Gijs or Dao, can one of you please outline the steps to reproduce because I'm also not seeing a difference?

Flags: needinfo?(gijskruitbosch+bugs)
Flags: needinfo?(dao+bmo)
Flags: needinfo?(sclements)

It's quite possible that this can't be reproduced in Firefox, indeed it looks like there's no case where we don't override the toolkit colors for menubars. There's another one in the Library window doing its own thing as well (and I think this has a higher specificity than the restored toolkit rule): https://searchfox.org/mozilla-central/rev/0e93b94f4c2045c6a5f5260ee48bbf7a94a993bc/browser/themes/windows/places/organizer.css#117

The fix is still valid but I guess we don't need to verify it.

Flags: qe-verify-
Flags: qe-verify+
Flags: needinfo?(dao+bmo)
Flags: needinfo?(gijskruitbosch+bugs)
Points: --- → 1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: