Suppose we have the following manifest.json
file:
{
"manifest_version": 3,
"name": "Hello",
"version": "0.1.0",
"content_scripts": [
{
"matches": [
"https://www.example.com/*"
],
"js": [
"index.js"
]
}
]
}
Firefox treats host_permission
as optional, meaning that the content script index.js
is not executed by default. Instead, it requires users to first click the extension toolbar button.
On Firefox for desktop, users can also right-click the toolbar button and switch the option from Only When Clicked to Always Allow on [HOST] to grant persistent permission for the host.
However, it appears that Firefox for Android does not support this right-click functionality. Consequently, there is no method available to automatically grant the host permission to execute the content script.