From 3aa0014d238046854c612fc5b011469a34ecdef9 Mon Sep 17 00:00:00 2001 From: Sam Maddock Date: Mon, 16 Dec 2024 09:46:20 -0500 Subject: [PATCH] fix: chrome.i18n unavailable in extension service workers (#45031) https://chromium-review.googlesource.com/c/chromium/src/+/3362491 --- .../common/extensions/api/_api_features.json | 34 ++++++++----------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/shell/common/extensions/api/_api_features.json b/shell/common/extensions/api/_api_features.json index 95c02c58cab43..b5af622579858 100644 --- a/shell/common/extensions/api/_api_features.json +++ b/shell/common/extensions/api/_api_features.json @@ -24,20 +24,6 @@ "action.setBadgeTextColor": { "channel": "stable" }, - "tabs": { - "channel": "stable", - "extension_types": ["extension"], - "contexts": ["privileged_extension"] - }, - "tabs.executeScript": { - "max_manifest_version": 2 - }, - "tabs.insertCSS": { - "max_manifest_version": 2 - }, - "tabs.removeCSS": { - "max_manifest_version": 2 - }, "extension": { "channel": "stable", "extension_types": ["extension"], @@ -59,12 +45,6 @@ ], "max_manifest_version": 2 }, - "i18n": { - "channel": "stable", - "extension_types": ["extension"], - "contexts": ["privileged_extension", "unprivileged_extension", "content_script"], - "disallow_for_service_workers": true - }, "mimeHandlerViewGuestInternal": { "internal": true, "contexts": "all", @@ -93,5 +73,19 @@ "channel": "trunk", "dependencies": ["permission:scripting"], "contexts": ["content_script"] + }, + "tabs": { + "channel": "stable", + "extension_types": ["extension"], + "contexts": ["privileged_extension"] + }, + "tabs.executeScript": { + "max_manifest_version": 2 + }, + "tabs.insertCSS": { + "max_manifest_version": 2 + }, + "tabs.removeCSS": { + "max_manifest_version": 2 } }