Skip to content
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

Consider introducing a new error code for optional-only permissions #5554

Open
rpl opened this issue Jan 21, 2025 · 1 comment
Open

Consider introducing a new error code for optional-only permissions #5554

rpl opened this issue Jan 21, 2025 · 1 comment

Comments

@rpl
Copy link
Member

rpl commented Jan 21, 2025

As a followup to #5551 we want to consider introducing a new error code to be associated to optional-only permissions being requested as non-optional.

Reasons for introducing a new error code would be:

  • make it clear when a permission is invalid because non supported by Firefox vs. when it is invalid because it can only requested as optional
  • point developers to a doc page describing in a bit more details how developers should use optional-only permissions (and how that differs from other optional permissions).
@Rob--W
Copy link
Member

Rob--W commented Jan 30, 2025

We have a stub for MDN documentation, which we should link that from the dedicated message: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/optional_permissions#optional-only_permissions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants