mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
make sure nsCryptoHash/PSM is initialized on the main thread in the url classifier. b=390324, r=tony
This commit is contained in:
parent
73674fd85b
commit
700c4f7ef4
@ -2083,6 +2083,11 @@ nsUrlClassifierDBService::Init()
|
||||
do_GetService(MOZ_STORAGE_SERVICE_CONTRACTID, &rv);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Force PSM to be loaded on the main thread.
|
||||
nsCOMPtr<nsICryptoHash> hash =
|
||||
do_CreateInstance(NS_CRYPTO_HASH_CONTRACTID, &rv);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Start the background thread.
|
||||
rv = NS_NewThread(&gDbBackgroundThread);
|
||||
if (NS_FAILED(rv))
|
||||
|
Loading…
Reference in New Issue
Block a user