From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../components/extensions/schemas/menus_child.json | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 browser/components/extensions/schemas/menus_child.json (limited to 'browser/components/extensions/schemas/menus_child.json') diff --git a/browser/components/extensions/schemas/menus_child.json b/browser/components/extensions/schemas/menus_child.json new file mode 100644 index 0000000000..884c4708ec --- /dev/null +++ b/browser/components/extensions/schemas/menus_child.json @@ -0,0 +1,29 @@ +[ + { + "namespace": "menus", + "permissions": ["menus"], + "allowedContexts": ["content", "devtools"], + "description": "The part of the menus API that is available in all extension contexts, including content scripts.", + "functions": [ + { + "name": "getTargetElement", + "type": "function", + "allowedContexts": ["content", "devtools"], + "description": "Retrieve the element that was associated with a recent contextmenu event.", + "parameters": [ + { + "type": "integer", + "description": "The identifier of the clicked element, available as info.targetElementId in the menus.onShown, onClicked or onclick event.", + "name": "targetElementId" + } + ], + "returns": { + "type": "object", + "optional": true, + "isInstanceOf": "Element", + "additionalProperties": { "type": "any" } + } + } + ] + } +] -- cgit v1.2.3