Open Bug 1908555 Opened 3 months ago Updated 2 months ago

Close the current profile after launching a new one when restoring a backup

Categories

(Firefox :: Profile Backup, task, P1)

task

Tracking

()

ASSIGNED

People

(Reporter: fchasen, Assigned: fchasen)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-device-migration] )

Attachments

(1 file, 1 obsolete file)

Currently after restoring from a backup, the new profile instance is launched behind the current window.
We should close the existing profile's instance after the new one has launched.

Blocks: 1905159
Severity: S4 → --
No longer depends on: 1905159
Assignee: nobody → fchasen
Status: NEW → ASSIGNED

While quitting the current instance worked, the experience is a little jarring as the new profile isn't focused / in the foreground after launch, so it was hidden behind another window for me. While nsAppStartup::CreateInstanceWithProfile seems to have a reference to the process it created but no idea if that is enough to focus it.

Seem that a better approach will be to just set ProfileService.defaultProfile to the new profile and then restart.

Will add an option to the recovery method to restart to do this.

Severity: -- → N/A
Priority: P2 → P1
  • Adds a switchToProfile method to the Backup Service which will set a profile to default and create a new instance.
  • Adds a call to quit the current instance after a backup recovery has finished successfully.
  • Adds browser.backup.recovery.quit-after-recovery and browser.backup.recovery.set-recovered-profile-as-default prefs to disable the above for testing.
Attachment #9417532 - Attachment description: Bug 1908555 - Set recovered profile to default and quit current instance after restoring from backup. r?#backup-reviewers!( → Bug 1908555 - Set recovered profile to default and quit current instance after restoring from backup. r?#backup-reviewers!
Attachment #9417532 - Attachment description: Bug 1908555 - Set recovered profile to default and quit current instance after restoring from backup. r?#backup-reviewers! → Bug 1908555 - Set recovered profile to default and quit current instance after restoring from backup. r?#backup-reviewers!,mossop!
Attachment #9417156 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: