As of January 17, Firefox now supports Manifest v3 in Firefox 109.0.
I have an add-on I am testing with Manifest v3 and it requires access to a variable on reddit.com.
I want to make the "Access your data for sites in the *://reddit.com domain" permission required, since the extension does not work without it.
What needs to be done to make it so it does not show as optional since I want the user to not have to explicitly turn on the permission from the Permissions tab?
I want it show as required similar to this image (source):
Here's a trimmed down version of an example Manifest file that shows the permission as optional.
{
"manifest_version": 3,
"name": "Example",
"description": "Example",
"version": "3.16.1",
"content_scripts": [
{
"run_at": "document_idle",
"matches": ["*://*.reddit.com/"],
"js": ["script.js"]
}
]
}
I have tried adding "permissions": ["https://*.reddit.com/*"]
, but it still shows as optional.
I also tried "permissions": ["*://reddit.com"]
and "host_permissions": ["*://reddit.com"]
but nothing is causing it to be required.
I have a Chrome extension which is working with the same manifest v3 file.