forked from mirrors/gecko-dev
Bug 1881536 - Call InitializeMacApp before CheckDowngrade dialog. r=spohl
We don't move the InitializeMacApp call earlier in this function outside of the isDowngrade branch because that impacted performance (bug 1876059). Differential Revision: https://phabricator.services.mozilla.com/D211883
This commit is contained in:
parent
ab8428039b
commit
c2c3ad7001
1 changed files with 3 additions and 0 deletions
|
|
@ -5171,6 +5171,9 @@ int XREMain::XRE_mainStartup(bool* aExitFlag) {
|
|||
// the command line regardless of whether this is a downgrade or not.
|
||||
if (!CheckArg("allow-downgrade") && isDowngrade &&
|
||||
!EnvHasValue("MOZ_ALLOW_DOWNGRADE")) {
|
||||
# ifdef XP_MACOSX
|
||||
InitializeMacApp();
|
||||
# endif
|
||||
rv = CheckDowngrade(mProfD, mNativeApp, mProfileSvc, lastVersion);
|
||||
if (rv == NS_ERROR_LAUNCHED_CHILD_PROCESS || rv == NS_ERROR_ABORT) {
|
||||
*aExitFlag = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue