Closed Bug 1708015 Opened 5 years ago Closed 5 years ago

Replace MOZ_USE_NATIVE_POPUP_WINDOWS with mozilla::widget::NativeMenuSupport::ShouldUseNativeContextMenus() in nsToolkit.mm

Categories

(Core :: Widget: Cocoa, defect, P2)

All
macOS
defect

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: spohl, Assigned: spohl)

References

Details

Attachments

(1 file)

We have some dead code in widget/cocoa that uses the compile-time define MOZ_USE_NATIVE_POPUP_WINDOWS to check whether native context menus are enabled. We should do away with this code and replace it with the runtime check mozilla::widget::NativeMenuSupport::ShouldUseNativeContextMenus(). I am making the first of these replacements in bug 1707869 where this change results in a fix for a regression introduced by the enabling of native context menus. However, replacing this compile-time define with a runtime check could introduce other regressions, which is why I'm breaking this out into a separate bug and patch for easier tracking and/or backout if necessary.

Summary: Replace MOZ_USE_NATIVE_POPUP_WINDOWS define with mozilla::widget::NativeMenuSupport::ShouldUseNativeContextMenus() → Replace MOZ_USE_NATIVE_POPUP_WINDOWS with mozilla::widget::NativeMenuSupport::ShouldUseNativeContextMenus()
Summary: Replace MOZ_USE_NATIVE_POPUP_WINDOWS with mozilla::widget::NativeMenuSupport::ShouldUseNativeContextMenus() → Replace MOZ_USE_NATIVE_POPUP_WINDOWS with mozilla::widget::NativeMenuSupport::ShouldUseNativeContextMenus() in nsToolkit.mm
Blocks: 1708032
Pushed by spohl@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bb1b7e7a7cc3 Replace MOZ_USE_NATIVE_POPUP_WINDOWS with mozilla::widget::NativeMenuSupport::ShouldUseNativeContextMenus() in nsToolkit.mm. r=mstange
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
See Also: → 1706977
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: