Closed Bug 1779478 Opened 2 years ago Closed 1 year ago

Remove and replace some deprecated code on macOS

Categories

(Core :: Widget: Cocoa, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: spohl, Assigned: spohl)

References

Details

(Whiteboard: [mac:deprecated] )

Attachments

(5 files)

We want to modernize our code base on macOS by removing and/or replacing the use of deprecated APIs. This is expected to take the form of several individual patches by gradually working through all the deprecation warnings at build time.

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(spohl.mozilla.bugs)
Severity: -- → S3
Type: defect → enhancement
Flags: needinfo?(spohl.mozilla.bugs)
Priority: -- → P3

Rather than letting patches bitrot I'm going to land what we have so far and keep working on the remaining deprecation warnings. Setting leave-open.

Keywords: leave-open
Pushed by spohl@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dfd7e060998e
Replace the use of NSFindPboard and NSStringPboardType in our code base to modernize the code base and address deprecation warnings at build time. r=mstange
https://hg.mozilla.org/integration/autoland/rev/4ae0ffc49b03
Replace the deprecated NSCellStateValue with NSControlStateValue. r=mstange
https://hg.mozilla.org/integration/autoland/rev/82515b99af37
Replace the deprecated use of NSStatusItem.image with NSStatusItem.button.image. r=mstange
https://hg.mozilla.org/integration/autoland/rev/b84e2b5933fe
Replace the deprecated use of NSGraphicsContext's graphicsPort with CGContext. r=mstange
See Also: → 1822845

It looks like the commits in this bug caused bug 1822845, so bug bug 1822845 should be added to the Regressions field.

I think it would be easier to track if this bug was closed since patches have landed. The remaining patches can be moved to a new bug.

Flags: needinfo?(spohl.mozilla.bugs)
Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(spohl.mozilla.bugs)
Keywords: leave-open
Regressions: 1822845
Resolution: --- → FIXED
See Also: 1822845
Summary: Remove and replace deprecated code on macOS → Remove and replace some deprecated code on macOS
Target Milestone: --- → 111 Branch
Whiteboard: [mac:deprecated]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: