Skip to content

Commit

Permalink
Bug 1933261: Fix the profile missing and downgrade UIs to not hang on…
Browse files Browse the repository at this point in the history
… startup. a=pascalc
  • Loading branch information
Ponchale committed Dec 6, 2024
1 parent 9efa083 commit 251b0ad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion toolkit/xre/nsAppRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2657,6 +2657,10 @@ static nsresult ProfileMissingDialog(nsINativeAppSupport* aNative) {
rv = xpcom.SetWindowCreator(aNative);
NS_ENSURE_SUCCESS(rv, NS_ERROR_FAILURE);

# ifdef XP_MACOSX
InitializeMacApp();
# endif

{ // extra scoping is needed so we release these components before xpcom
// shutdown
nsCOMPtr<nsIStringBundleService> sbs =
Expand Down Expand Up @@ -2687,7 +2691,7 @@ static nsresult ProfileMissingDialog(nsINativeAppSupport* aNative) {

return NS_ERROR_ABORT;
}
#endif // MOZ_WIDGET_ANDROID
#endif // MOZ_WIDGET_ANDROID
}

static ReturnAbortOnError ProfileLockedDialog(nsIFile* aProfileDir,
Expand Down Expand Up @@ -3241,6 +3245,10 @@ static ReturnAbortOnError CheckDowngrade(nsIFile* aProfileDir,
rv = xpcom.SetWindowCreator(aNative);
NS_ENSURE_SUCCESS(rv, rv);

# ifdef XP_MACOSX
InitializeMacApp();
# endif

{ // extra scoping is needed so we release these components before xpcom
// shutdown
bool hasSync = false;
Expand Down

0 comments on commit 251b0ad

Please sign in to comment.