commit 56a2c00d85f890f3c6084303e70bb1b124b8be4e parent 392a6f0444ce5ba72c030c181171533bf0b46597 Author: Jared Hirsch <ohai@6a68.net> Date: Tue, 28 Oct 2025 22:27:09 +0000 Bug 1996358 - Init the SelectableProfileService before attempting to copy a profile r=profiles-reviewers,niklas Differential Revision: https://phabricator.services.mozilla.com/D270049 Diffstat:
| M | browser/base/content/browser-profiles.js | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/browser/base/content/browser-profiles.js b/browser/base/content/browser-profiles.js @@ -167,7 +167,9 @@ var gProfiles = { }, copyProfile() { - SelectableProfileService.currentProfile.copyProfile(); + SelectableProfileService.maybeSetupDataStore().then(() => { + SelectableProfileService.currentProfile.copyProfile(); + }); }, createNewProfile() {