Skip to content

Commit 7ebe49c

Browse files
fix: firefox store release issue with data_collection_permissions
1 parent c3c615d commit 7ebe49c

File tree

2 files changed

+13
-23
lines changed

2 files changed

+13
-23
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ This starter uses **Manifest V3** for all browsers.
5151

5252
| [![Chrome](https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png)](/) | [![Firefox](https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png)](/) | [![Opera](https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png)](/) | [![Edge](https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png)](/) | [![Brave](https://raw.githubusercontent.com/alrra/browser-logos/master/src/brave/brave_48x48.png)](/) |
5353
| --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
54-
| 88+ (Jan 2021) | 109+ (Jan 2023) | 74+ (Chromium-based) | 88+ (Chromium-based) | Latest (Chromium-based) |
54+
| 88+ (Jan 2021) | 112+ (Apr 2023) | 74+ (Chromium-based) | 88+ (Chromium-based) | Latest (Chromium-based) |
5555

56-
> **Note**: Firefox 109+ is required for Manifest V3 support with ES modules in background scripts.
56+
> **Note**: Firefox 112+ is required for Manifest V3 support with ES modules in background scripts.
5757
>
5858
> Need to support older Firefox versions? See [Firefox MV2 Guide](docs/FIREFOX_MV2.md) for using Manifest V2 with Firefox.
5959

source/manifest.json

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,15 @@
1313
"homepage_url": "https://github.com/abhijithvijayan/web-extension-starter",
1414
"short_name": "Sample Name",
1515

16-
"permissions": [
17-
"activeTab",
18-
"storage"
19-
],
16+
"permissions": ["activeTab", "storage"],
2017

2118
"optional_permissions": [],
2219

2320
"__chrome__host_permissions": [],
2421

25-
"__chrome__optional_host_permissions": [
26-
"http://*/*",
27-
"https://*/*"
28-
],
22+
"__chrome__optional_host_permissions": ["http://*/*", "https://*/*"],
2923

30-
"__firefox__optional_host_permissions": [
31-
"http://*/*",
32-
"https://*/*"
33-
],
24+
"__firefox__optional_host_permissions": ["http://*/*", "https://*/*"],
3425

3526
"content_security_policy": {
3627
"extension_pages": "script-src 'self'; object-src 'self';"
@@ -41,7 +32,11 @@
4132
"__firefox__browser_specific_settings": {
4233
"gecko": {
4334
"id": "{754FB1AD-CC3B-4856-B6A0-7786F8CA9D17}",
44-
"strict_min_version": "109.0"
35+
"strict_min_version": "112.0",
36+
"data_collection_permissions": {
37+
"required": ["none"],
38+
"optional": []
39+
}
4540
}
4641
},
4742

@@ -74,14 +69,9 @@
7469
"content_scripts": [
7570
{
7671
"run_at": "document_start",
77-
"matches": [
78-
"http://*/*",
79-
"https://*/*"
80-
],
72+
"matches": ["http://*/*", "https://*/*"],
8173
"css": [],
82-
"js": [
83-
"assets/js/contentScript.bundle.js"
84-
]
74+
"js": ["assets/js/contentScript.bundle.js"]
8575
}
8676
],
8777

@@ -91,4 +81,4 @@
9181
"matches": ["http://*/*", "https://*/*"]
9282
}
9383
]
94-
}
84+
}

0 commit comments

Comments
 (0)