Bug 1413868.

This commit is contained in:
wolfbeast 2018-06-30 18:34:19 +02:00 • committed by Roy Tam
commit c180f85048
8 changed files with 466 additions and 0 deletions

View file

@ -9,6 +9,7 @@
#include "mozilla/ArrayUtils.h"
#include "mozilla/Attributes.h"
#include "mozilla/FilePreferences.h"
#include "mozilla/ChaosMode.h"
#include "mozilla/IOInterposer.h"
#include "mozilla/Likely.h"
@ -3744,6 +3745,10 @@ XREMain::XRE_mainRun()
mDirProvider.DoStartup();
// As FilePreferences need the profile directory, we must initialize right here.
mozilla::FilePreferences::InitDirectoriesWhitelist();
mozilla::FilePreferences::InitPrefs();
OverrideDefaultLocaleIfNeeded();
appStartup->GetShuttingDown(&mShuttingDown);

View file

@ -51,6 +51,7 @@
#include "base/process_util.h"
#include "chrome/common/child_process.h"
#include "mozilla/FilePreferences.h"
#include "mozilla/ipc/BrowserProcessSubThread.h"
#include "mozilla/ipc/GeckoChildProcessHost.h"
#include "mozilla/ipc/IOThreadChild.h"
@ -566,6 +567,9 @@ XRE_InitChildProcess(int aArgc,
::SetProcessShutdownParameters(0x280 - 1, SHUTDOWN_NORETRY);
#endif
mozilla::FilePreferences::InitDirectoriesWhitelist();
mozilla::FilePreferences::InitPrefs();
OverrideDefaultLocaleIfNeeded();
// Run the UI event loop on the main thread.