Bug 1698997 - Disable the Services item in context menus for now. r=harry

Bug 660452 tracks turning this on for the appropriate menus.

Depends on D108721

Differential Revision: https://phabricator.services.mozilla.com/D109179
This commit is contained in:
Markus Stange 2021-03-23 14:38:28 +00:00
parent 070f09c1ac
commit 7555ea54af

View File

@ -487,6 +487,9 @@ GeckoNSMenu* nsMenuX::CreateMenuWithGeckoString(nsString& aMenuTitle) {
// overrides our decisions and things get incorrectly enabled/disabled.
myMenu.autoenablesItems = NO;
// Disable the Services item for now. Bug 660452 tracks turning this on for the appropriate menus.
myMenu.allowsContextMenuPlugIns = NO;
// we used to install Carbon event handlers here, but since NSMenu* doesn't
// create its underlying MenuRef until just before display, we delay until
// that happens. Now we install the event handlers when Cocoa notifies