Closed Bug 1893710 Opened 1 year ago Closed 1 year ago

Update default profile to last used SelectableProfile in a profile group

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: jhirsch, Assigned: niklas, NeedInfo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-profile-management] )

Attachments

(1 file)

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]

While profile control mechanism is being developed, I'd like to mention this. For us, OCD-challenged squirrels, please have an option to manually control which profile remains default. Predictable and constant behavior lends to a lot of confidence in the product stability, perceived or otherwise.

A solid example of choice between automatic or manual selection is how a default printer selection is done on Windows 10/11. There exists a Let Windows manage my default printer check box for user to choose.

Assignee: nobody → nbaumgardner
Status: NEW → ASSIGNED
Attachment #9416309 - Attachment description: WIP: Bug 1893710 - Update default profile on window focus. r=jhirsch,mossop → Bug 1893710 - Update default profile on window focus. r=jhirsch,mossop

Hey there, thanks for the suggestion. I wanted to mention that we are now asking folks to redirect their feature ideas or suggestions to Mozilla Connect, where our product folks can keep track of inputs and respond or ask followup questions. It's been decided recently that BMO should be used mainly for tracking work in progress. You can either start a new thread on Connect or add a comment to an existing profiles thread. Needinfoing you just to be sure you see this comment, thanks!

Flags: needinfo?(goodvin)
Attachment #9416309 - Attachment description: Bug 1893710 - Update default profile on window focus. r=jhirsch,mossop → WIP: Bug 1893710 - Update default profile on window focus. r=jhirsch,mossop
Attachment #9416309 - Attachment description: WIP: Bug 1893710 - Update default profile on window focus. r=jhirsch,mossop → Bug 1893710 - Update default profile on window focus. r=jhirsch,mossop
Pushed by nbaumgardner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a85e224209c9 Update default profile on window focus. r=jhirsch,mossop
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: