-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MV3 host permission install prompt #34094
Conversation
Preview URLs
External URLs (4)URL:
URL:
(comment last updated: 2024-06-27 04:16:46) |
@@ -41,6 +41,8 @@ Use the `host_permissions` key to request access for the APIs in your extension | |||
|
|||
Most browsers treat `host_permissions` as optional. If you request permissions using this key, users _may_ get prompted to grant those permissions during installation. As of June 2023, Safari, Firefox, and some Chromium-based browsers don't prompt the user during installation. | |||
|
|||
> **Note:** From Firefox 127. `host_permissions` for Manifest V3 extensions is considered a required permission and displayed to users during installation. However, if an extension update grants new host permissions, these are not shown to the user. See ([Firefox bug 1893232](https://bugzil.la/1893232)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> **Note:** From Firefox 127. `host_permissions` for Manifest V3 extensions is considered a required permission and displayed to users during installation. However, if an extension update grants new host permissions, these are not shown to the user. See ([Firefox bug 1893232](https://bugzil.la/1893232)) | |
> **Note:** Until Firefox 126, Firefox did not include requested host permissions of Manifest Version 3 extensions in the install prompt. Starting from Firefox 127, host permissions listed in `host_permissions` and `content_scripts` do appear in the install prompt. However, if an extension update requests new host permissions, these are not shown to the user. See ([Firefox bug 1893232](https://bugzil.la/1893232)). |
On wording: "required" is not accurate.
The previous paragraph tries to emphasize that host_permissions are optional, and that is still the case: users can revoke them at any time.
The wording as written is technically true but potentially overstating the unreliability of them.
In practice:
- Chrome shows the permissions in the install prompt.
- Firefox 127 shows the permissions in the install prompt. Up until Firefox 126, host permissions were not shown in the install prompt. Starting from 127, they are. However, when a new permission is added in an update, Firefox will not show any prompt for it. Extensions who rely on the new host permissions are encouraged to use the permissions.contains API after install (runtime.onInstalled) to check whether the permission has been granted and show an onboarding page if needed.
files/en-us/mozilla/add-ons/webextensions/manifest.json/host_permissions/index.md
Outdated
Show resolved
Hide resolved
This pull request has merge conflicts that must be resolved before it can be merged. |
…ermissions/index.md Co-authored-by: rebloor <[email protected]>
Description
Addresses the documentation needed for Bug 1889402 Grant origin permissions during install for mv3, including:
Related issues and pull requests
Related update to the Extension Workshop Manifest V3 migration guide mozilla/extension-workshop#1887