Fix comments for NSS PBKDF setup (no code change)

This commit is contained in:
wolfbeast 2020-01-14 13:14:57 +01:00 committed by Roy Tam
commit 47e85541f1

View file

@ -2802,6 +2802,23 @@ XREMain::XRE_mainInit(bool* aExitFlag)
SetupErrorHandling(gArgv[0]);
#if 0
// Set up environment for NSS DBM database
// Allow iteration counts in DBM mode
SaveToEnv("NSS_ALLOW_LEGACY_DBM_ITERATION_COUNT=1");
// Set default Master Password rounds to a sane value for DBM which is slower
// than SQL for PBKDF. The NSS hard-coded default of 10,000 is too much.
// See also Bug 1606992 for perf issues.
#ifdef DEBUG
SaveToEnv("NSS_MAX_MP_PBE_ITERATION_COUNT=15");
#else
SaveToEnv("NSS_MAX_MP_PBE_ITERATION_COUNT=500");
#endif
#endif
#ifdef CAIRO_HAS_DWRITE_FONT
{
// Bug 602792 - when DWriteCreateFactory is called the dwrite client dll