mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 11:37:30 +09:00
Bug 1413868.
This commit is contained in:
parent
76e79cecec
commit
c180f85048
8 changed files with 466 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue