This guide will help you integrate
ExperimentAPI.jsm in your Desktop front-end code to run Nimbus experiments, while still being able to use preferences for default values and local development.
In order to use
ExperimentAPI.jsm your code must be able to import
jsms in the parent process or a privileged child process.
Take a look a the Desktop Feature API docs to register a new feature in the manifest. If you are already using Firefox preferences to experiment using Normandy, you can add those as
Anywhere in the code your are using
Services.prefs to get values, use
If you've configured fallback preferences your tests should pass, but we recommend also using the the Testing Guide to add tests for your feature that enroll experiment configurations.