[macOS 10.13] Address bar text is not readable if Firefox Dark theme is used
Categories
(Core :: Widget: Cocoa, defect, P1)
Tracking
()
People
(Reporter: atrif, Assigned: bugzilla)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
49.35 KB,
image/png
|
Details | |
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr91+
|
Details | Review |
Affected versions
- 91.0 (20210804193234)
- 92.0b2 (20210810185524)
- 93.0a1 (20210810213316)
Affected platforms
- macOS 10.13
Preconditions
- Firefox Dark theme
- Blue Highlight color inside System Preferences -> General
Steps to reproduce
- Open Firefox, write something in the address bar, and highlight it.
Expected result
- Text inside the Address bar is displayed as expected.
Actual result
- Text inside the Address bar is barely visible.
Regression range
- Last good revision: b8b54a4990d7e778b82909a871e92031a4bc649d
First bad revision: 4b3932f9c4f5d9572da2f0232375474133191500
Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=b8b54a4990d7e778b82909a871e92031a4bc649d&tochange=4b3932f9c4f5d9572da2f0232375474133191500
Notes
- Attached a screenshot.
- I cannot reproduce the issue on macOS 10.14 or 10.15 with the same machine and external monitor.
Reporter | ||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
Harry, could you take a look? The regression range has a couple of appearance-related patches.
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Before bug 1703892, we used the light NSColor.selectedTextBackgroundColor
and simply halved the alpha channel to make it easier to discern white text underneath. After Bug 1700294, which added support for using different selection colors in dark and light modes, bug 1703892 stopped halving the alpha channel in dark mode because we could use the appropriate dark NSColor.selectedTextBackgroundColor
. This doesn't work on 10.13 because 10.13 doesn't support dark mode.
We decide whether or not to halve alpha based on the ColorScheme
value we pass to nsLookAndFeel::ProcessSelectionBackground
. We should stop passing ColorScheme::Dark
when the system does not support dark mode, like on 10.13.
Assignee | ||
Comment 3•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by htwyford@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b69c43f3881c Force ColorScheme::Light in NativeGetColor on macOS < 10.14. r=mac-reviewers,mstange
Comment 5•3 years ago
|
||
bugherder |
Reporter | ||
Comment 6•3 years ago
|
||
Verified fixed with Firefox 93.0a1 (20210824094724) on macOS 10.12 and 10.13. The text is now readable inside the address bar.
Comment 7•3 years ago
|
||
Please nominate this for Beta and ESR91 approval when you get a chance.
Updated•3 years ago
|
Assignee | ||
Comment 8•3 years ago
|
||
Comment on attachment 9236515 [details]
Bug 1725146 - Force ColorScheme::Light in NativeGetColor on macOS < 10.14. r?#mac-reviewers!
Beta/Release Uplift Approval Request
- User impact if declined: Highlighted text in the Urlbar will have low contrast.
- 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: See comment 0. It should be tested on both macOS <= 10.13 and >= 10.14.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Small patch with well-understood effects. Tested in review by mstange on a machine running macOS 10.13.
- String changes made/needed:
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: This is a fairly serious UI regression and shouldn't sit for a year in ESR.
- User impact if declined: See above.
- Fix Landed on Version: 93
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Small patch with well-understood effects.
- String or UUID changes made by this patch:
Assignee | ||
Updated•3 years ago
|
Comment 9•3 years ago
|
||
Comment on attachment 9236515 [details]
Bug 1725146 - Force ColorScheme::Light in NativeGetColor on macOS < 10.14. r?#mac-reviewers!
Approved for 92.0b9 and 91.1esr.
Comment 10•3 years ago
|
||
bugherder uplift |
Comment 11•3 years ago
|
||
bugherder uplift |
Updated•3 years ago
|
Reporter | ||
Comment 12•3 years ago
|
||
Verified fixed 91.1.0esr (20210825223222), 92.0b9 (20210825224239) from comment 10 and comment 11 on macOS 10.13 and macOS 10.12. The text inside the address bar is visible when selected while using Firefox dark theme.
Description
•