Skip to content

Commit

Permalink
Bug 1777332 - Ensure the Mac font registration thread gets a chance t…
Browse files Browse the repository at this point in the history
…o finish. r=gsvelto,application-update-reviewers,nalexander

Differential Revision: https://phabricator.services.mozilla.com/D150869
  • Loading branch information
jfkthame committed Jul 4, 2022
1 parent 0c87a15 commit 2173773
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions toolkit/xre/nsUpdateDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
# include "MacLaunchHelper.h"
# include "updaterfileutils_osx.h"
# include "mozilla/Monitor.h"
# include "gfxPlatformMac.h"
#endif

#if defined(XP_WIN)
Expand Down Expand Up @@ -432,6 +433,12 @@ static void ApplyUpdate(nsIFile* greDir, nsIFile* updateDir, nsIFile* appDir,
}

#if defined(XP_MACOSX)
// If we're going to do a restart, we need to make sure the font registration
// thread has finished before this process exits (bug 1777332).
if (restart) {
gfxPlatformMac::WaitForFontRegistration();
}

// We need to detect whether elevation is required for this update. This can
// occur when an admin user installs the application, but another admin
// user attempts to update (see bug 394984).
Expand Down

0 comments on commit 2173773

Please sign in to comment.