From 9cd5a35586b2babbff47800f9e631e9242fd04ff Mon Sep 17 00:00:00 2001 From: Luca Greco Date: Fri, 10 May 2024 14:18:48 +0200 Subject: [PATCH] feat: Imported Firefox 126 API schema data (#5281) --- src/schema/imported/commands.json | 12 ++++++++++++ src/schema/imported/manifest.json | 10 ++++++++++ src/schema/imported/tabs.json | 5 +++-- src/schema/imported/web_request.json | 3 ++- 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/src/schema/imported/commands.json b/src/schema/imported/commands.json index 4008ad3efe..bfcd9e4b2b 100644 --- a/src/schema/imported/commands.json +++ b/src/schema/imported/commands.json @@ -13,6 +13,18 @@ { "name": "command", "type": "string" + }, + { + "allOf": [ + { + "$ref": "tags#/types/Tab" + }, + { + "name": "tab", + "optional": true, + "description": "Details of the $(ref:tabs.Tab) where the command was activated." + } + ] } ] }, diff --git a/src/schema/imported/manifest.json b/src/schema/imported/manifest.json index 0ad084f6f2..e00b399314 100644 --- a/src/schema/imported/manifest.json +++ b/src/schema/imported/manifest.json @@ -189,6 +189,16 @@ } ] }, + "options_page": { + "allOf": [ + { + "$ref": "manifest#/types/ExtensionURL" + }, + { + "description": "Alias property for options_ui.page, ignored when options_ui.page is set. When using this property the options page is always opened in a new tab." + } + ] + }, "options_ui": { "type": "object", "properties": { diff --git a/src/schema/imported/tabs.json b/src/schema/imported/tabs.json index a630118be8..f2b71e2fce 100644 --- a/src/schema/imported/tabs.json +++ b/src/schema/imported/tabs.json @@ -809,9 +809,10 @@ { "name": "captureVisibleTab", "type": "function", - "description": "Captures an area of the currently active tab in the specified window. You must have $(topic:declare_permissions)[<all_urls>] permission to use this method.", + "description": "Captures an area of the currently active tab in the specified window. You must have <all_urls> or activeTab permission to use this method.", "permissions": [ - "" + "", + "activeTab" ], "async": "callback", "parameters": [ diff --git a/src/schema/imported/web_request.json b/src/schema/imported/web_request.json index 64b60acc34..b73f346a77 100644 --- a/src/schema/imported/web_request.json +++ b/src/schema/imported/web_request.json @@ -1386,6 +1386,7 @@ "type": "string", "enum": [ "webRequest", + "webRequestAuthProvider", "webRequestBlocking", "webRequestFilterResponse", "webRequestFilterResponse.serviceWorkerScript" @@ -1463,7 +1464,7 @@ "blocking", "asyncBlocking" ], - "postprocess": "webRequestBlockingPermissionRequired" + "postprocess": "webRequestBlockingOrAuthProviderPermissionRequired" }, "OnResponseStartedOptions": { "type": "string",