Browse Source

fix: chrome.i18n unavailable in extension service workers (#45036)

https://chromium-review.googlesource.com/c/chromium/src/+/3362491

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Sam Maddock <[email protected]>
trop[bot] 4 months ago
parent
commit
52484b0ccd
1 changed files with 14 additions and 20 deletions
  1. 14 20
      shell/common/extensions/api/_api_features.json

+ 14 - 20
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
   }
 }