From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. 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