Skip to content

Commit 4edcd5d

Browse files
committed
feat(webchannel): Add support for SYNC_PREFERENCES command
Because: * We will need this webchannel for upcoming changes to sync registration This commit: * Adds the command to available channels in fxa-settings Closes #FXA-11741
1 parent c9ed020 commit 4edcd5d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/fxa-settings/src/lib/channels/firefox.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ export enum FirefoxCommand {
1313
Error = 'fxError',
1414
OAuthLogin = 'fxaccounts:oauth_login',
1515
CanLinkAccount = 'fxaccounts:can_link_account',
16+
// opens sync preferences if user is signed in to sync
17+
// use as: firefox.send(FirefoxCommand.SyncPreferences, {ok: true});
18+
// caveat: if browser does not support the command
19+
// or the user is not signed in to sync
20+
// there is no response and the command fails silently
21+
// As of May 2025, this command is available on desktop
22+
// support will be added on Android (https://bugzilla.mozilla.org/show_bug.cgi?id=1968130)
23+
// and iOS (https://github.com/mozilla-mobile/firefox-ios/issues/26837)
24+
SyncPreferences = 'fxaccounts:sync_preferences',
1625
}
1726

1827
export interface FirefoxMessageDetail {

0 commit comments

Comments
 (0)