Prompt users for data and privacy consents
If your extension collects user data, it must comply with the requirement of the Data Disclosure, Collection and Management section of the Add-on Policies.
A common developer question about these policies is how to translate them into browser extension features that are compliant to Mozilla’s Add-on policies. This how-to is the result of those requests and offers advice on implementing prompts to meet the data collection and add-on policies. This article suggests how you can implement suitable prompts but it doesn’t replace or supersede the policies; you still need to confirm that your extension complies with the policies.
Firefox provides a built-in consent for data collection and transmission in Firefox for desktop 140 and later, and Firefox for Android 142 and later. See Firefox built-in consent for data collection and transmission.
If your extension is installed in an enterprise via the force_installed or normal_installed options in the ExtensionSettings enterprise policy, you must still implement the disclosure and consent experience in the add-on.
You can set a value via the 3rdparty enterprise policy and read it with storage.managed in the add-on to determine if consent is granted. You must display the disclosure and consent experience if the value is not set in storage.managed.



