From 664ab77972f2b39cf5a3dca93962c4cee9a9ec60 Mon Sep 17 00:00:00 2001 From: Gijs Kruitbosch Date: Thu, 4 Mar 2021 22:54:23 +0000 Subject: [PATCH] Bug 1695873 - remove nativemenuservice remnants and fix macOS openedwithkey attribute use, r=mak,mstange Although 11 years ago feature-checking for native menus made sense, right now we do not expect any other OSes to implement native menus, and macOS' behaviour is currently not quite right because we stopped exposing the relevant XPCOM component. The change in browser-menubar.inc fixes macOS behaviour. The nsWidgetsCID.h change is just clean-up. Differential Revision: https://phabricator.services.mozilla.com/D106962 --- browser/base/content/browser-menubar.inc | 10 +++++++--- widget/nsWidgetsCID.h | 8 -------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/browser/base/content/browser-menubar.inc b/browser/base/content/browser-menubar.inc index aa4048589c17..22865a9eef78 100644 --- a/browser/base/content/browser-menubar.inc +++ b/browser/base/content/browser-menubar.inc @@ -4,10 +4,14 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. + event.target.parentNode.openedWithKey);" +#endif + >