Using a Custom Profile with Firefox
If you're working on something in FxA involving Firefox you may need to configure the browser to suit your development environment.
Run yarn start firefox
, which will open an instance of Firefox. It is configurable with the following environment variables:
Variable | Values | Default |
---|---|---|
FXA_ENV - The API endpoints Firefox should use | local , latest , stable , stage | local |
FXA_DESKTOP_CONTEXT - The context in which FxA is being run | fx_desktop_v3 , fx_fennec_v1 , fx_ios_v1 , oauth_webchannel_v1 | fx_desktop_v3 |
FIREFOX_BIN - Path to Firefox bin file | /Applications/FirefoxNightly.app/Contents/MacOS/firefox-bin | |
FIREFOX_DEBUGGER - Open the Browser Toolbox | true , false | false |
FXA_E10S - Enable Electrolysis | true , false | false |
Stage environment setup instructions for different platforms
Stage environment setup on Android:
- Launch Firefox browser
- Tap on the 3 dots menu and then on
Settings
- Scroll down to
About Firefox
and tap on it - Tap 5 consecutive times on Firefox Browser to enable the debug menu
- Go back
- Tap on the
Custom Firefox Account
server just below "Turn on Sync" - Enter value:
https://accounts.stage.mozaws.net
and tap OK - Reopen the browser
Stage environment setup on iOS:
- Launch Firefox browser
- Tap on
Next
and then onStart browsing
- Tap on Hamburger menu in the browser
- Tap on
Settings
- Scroll down to the
About
section and tap 5 consecutive times on the Firefox version (e.g Firefox Daylight 101.1) to enable the debug menu - Scroll up to the
Firefox Account
section and tap onAdvanced Sync Settings
. (If you are signed into an account, disconnect first.) - Switch the
Use stage servers
to ON. - Restart the browser.
Note: On mobile when switching between Stage and Prod viceversa, it’s recommended to uninstall and reinstall the browser.
Stage environment setup on desktop browser:
- Launch Firefox browser.
- Go to
about:profiles
and create a new profile. - Go to
about:config
. - Change the preference
identity.fxaccounts.autoconfig.uri
tohttps://accounts.stage.mozaws.net
.