Open Bug 1893710 Opened 2 months ago Updated 2 months ago

Update default profile to last used SelectableProfile in a profile group

Categories

(Toolkit :: Startup and Profile System, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: jhirsch, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [fidefe-profile-management] )

We want to replace the default browser with the last-used browser. In the case of a user switching focus between two running Firefox instances, this means we'll need to update the default browser with each switch.

In this bug, we'll add methods to the new profiles code (SelectableProfile, SelectableProfileService) which will call through to the old profiles code (nsToolkitProfile, nsToolkitProfileService) to (1) change which profile is the default for a group of selectable profiles and then (2) persist that property to profiles.ini by setting a corresponding property on the nsToolkitProfile instance for the group.

Along the same lines as bug 1893687, we'll want to be sure that the new function added to nsToolkitProfileService immediately flushes the nsToolkitProfile entry to profiles.ini after updating the Path.

This also depends on the added default for profile flag to be introduced in bug 1893666.

Whiteboard: [fidefe-profile-management]
You need to log in before you can comment on or make changes to this bug.