Skip to content

Conversation

@rebloor
Copy link
Collaborator

@rebloor rebloor commented Jan 20, 2026

This change adds advice for developers who implement the Firefox built-in data collection experience in extensions that also run in versions of the browser without the built-in experience.

@rebloor rebloor requested a review from wagnerand-moz January 20, 2026 16:32
@rebloor rebloor self-assigned this Jan 20, 2026

## Supporting older Firefox versions

If your extension is available for Firefox for desktop 139 and earlier or Firefox for Android 141 and earlier, consider:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the word consider tell that you have to do either of the two? Do we need to make that more explicit?

Copy link
Collaborator Author

@rebloor rebloor Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wagnerand-moz, my understanding is that developers are not obliged to do either, is that incorrect?

- turn off the data collection for old Firefox versions, as it's likely most users are on newer versions of Firefox.
- implement a custom data collection experience and display it when installing on an old version of Firefox. Your extension can determine the platform and Firefox version it's installed on by checking `os` from [runtime.getPlatformInfo()](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/getPlatformInfo) and `version` from [runtime.getBrowserInfo()](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/getBrowserInfo) in a [runtime.onInstalled](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onInstalled) listener, like this:

```js
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rpl could you or someone in your team take a look at this code snippet?

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants