mdn / mdn/webextensions-examples
Add a data consent example
Open
@dotproto is already working on this.
Since Nov 6, 2025.
effort: medium
example
needs info
on hold
p2
- Dominant language
- JavaScript
- Stars
- 4.5k
- Forks
- 2.6k
- Avg merge
- 15h 27m
- Merged PRs (30d)
- 3
Description
Earlier this year Firefox announced plans to build data collection consent prompts into Firefox. Shortly thereafter it became available in Nightly for testing. As of November 3, AMO requires that new extensions use Firefox's built-in data collection consent APIs.
In order to help support developers attempting to adopt this API, we should add an example extension that demonstrates common usage patterns.
- Manifest: Use a mix of required and optional permissions
- Options page: Allow users to modify technical data grants
- Options page: Provide additional details about what data the extension transmits
- Options page: Allow users to uninstall the extension if they are not comfortable with required data transmission.
- Error reporting UI: Check for technical data permissions and, if they aren't grated, request permission in context.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.