Closed Bug 1927611 Opened 1 year ago Closed 1 year ago

Implement new profiles-related sync merge warning dialog

Categories

(Toolkit :: Startup and Profile System, enhancement)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1929705

People

(Reporter: jhirsch, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-profile-management] )

(TODO is there a bug already on file in the Sync jira?)

As described in the docs [1] and [2], implement a new sync merge warning to offer to launch a profile that's already signed into the given account, and do not allow users to sign into sync in two different profiles in a profile group at the same time.

Here I suspect we want to iterate over profiles in the profile group (via await SelectableProfileService.getAllProfiles()), then for each profile, get the root directory (via profile.rootDir to get an nsIFile or profile.path to get a string), and check if there is a signedInUser.json in that directory that contains a matching email address of the account that is currently signing in. If found, show the error (and offer to launch that profile, via SelectableProfileService.launchInstance(profile).

[1] https://docs.google.com/document/d/16ay2C5zuA_7VtnOxH_E28M4R202wBc0-XxiDuhdZDdE/edit#heading=h.h548zv8ulwzh

[2] https://docs.google.com/document/d/1dqvEYktbXYMzKm71ta0FMeQRvDuKdZKPDnAIylwaCx0/edit#heading=h.5uj461gdksgr

Blocks: 1927938
No longer blocks: 1882882
Whiteboard: [fidefe-profile-management] → [fidefe-profile-management]

The sync team is doing this work; closing as a dupe of their bug.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1929705
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.