mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Issue #1467 - Part 1: Set up conditional NSS-SQL builds.
- Adds buildconfig option --enable-nss-sqlstore - Prefixes NSS dbinit with either sql: or dbm: depending on config - Pre-initializes mozStorage when NSS-SQL storage is used to prevent an sqlite3_config race in NSS Init
This commit is contained in:
parent
b6b9b0e3fa
commit
5efa1a9e43
3 changed files with 35 additions and 0 deletions
|
|
@ -1102,7 +1102,12 @@ InitializeNSS(const nsACString& dir, bool readOnly, bool loadPKCS11Modules)
|
|||
flags |= NSS_INIT_NOMODDB;
|
||||
}
|
||||
nsAutoCString dbTypeAndDirectory;
|
||||
#ifdef NSS_SQLSTORE
|
||||
// Not strictly necessary with current NSS versions, but can't hurt to be explicit.
|
||||
dbTypeAndDirectory.Append("sql:");
|
||||
#else
|
||||
dbTypeAndDirectory.Append("dbm:");
|
||||
#endif
|
||||
dbTypeAndDirectory.Append(dir);
|
||||
return ::NSS_Initialize(dbTypeAndDirectory.get(), "", "", SECMOD_DB, flags);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue