From a58afe49df72f53e69216f1d9c691b5651938312 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Fri, 26 Mar 2021 02:06:53 +0000 Subject: [PATCH] Bug 1701108 - Create synthesized contextmenu event with button 2 ("eSecondary") to keep assertions happy. r=Gijs We have a warning assertion that wants all contextmenu events to have button 2, or be marked as a ctrl-click or triggered by the contextmenu keyboard key. Fixing this avoids a warning in debug builds but is otherwise inconsequential. Depends on D109825 Differential Revision: https://phabricator.services.mozilla.com/D109826 --- browser/base/content/nsContextMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/base/content/nsContextMenu.js b/browser/base/content/nsContextMenu.js index 2cacbda69d62..8f98510988a6 100644 --- a/browser/base/content/nsContextMenu.js +++ b/browser/base/content/nsContextMenu.js @@ -86,7 +86,7 @@ function openContextMenu(aMessage, aBrowser, aActor) { false, false, false, - 0, + 2, null, 0, context.mozInputSource