diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 15:11:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 15:11:26 +0000 |
commit | fcea19dfd2c426bac0456da850e7c12258e4b9eb (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /security/manager/ssl/nsNSSComponent.cpp | |
parent | Adding upstream version 115.7.0esr. (diff) | |
download | firefox-esr-upstream/115.8.0esr.tar.xz firefox-esr-upstream/115.8.0esr.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'security/manager/ssl/nsNSSComponent.cpp')
-rw-r--r-- | security/manager/ssl/nsNSSComponent.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/security/manager/ssl/nsNSSComponent.cpp b/security/manager/ssl/nsNSSComponent.cpp index 737f94812d..90bc638710 100644 --- a/security/manager/ssl/nsNSSComponent.cpp +++ b/security/manager/ssl/nsNSSComponent.cpp @@ -2158,15 +2158,11 @@ nsresult nsNSSComponent::MaybeEnableIntermediatePreloadingHealer() { return NS_OK; } - if (!mIntermediatePreloadingHealerTaskQueue) { - nsresult rv = NS_CreateBackgroundTaskQueue( - "IntermediatePreloadingHealer", - getter_AddRefs(mIntermediatePreloadingHealerTaskQueue)); - if (NS_FAILED(rv)) { - MOZ_LOG(gPIPNSSLog, LogLevel::Error, - ("NS_CreateBackgroundTaskQueue failed")); - return rv; - } + nsCOMPtr<nsIEventTarget> socketThread( + do_GetService(NS_SOCKETTRANSPORTSERVICE_CONTRACTID)); + if (!socketThread) { + MOZ_LOG(gPIPNSSLog, LogLevel::Error, ("couldn't get socket thread?")); + return NS_ERROR_FAILURE; } uint32_t timerDelayMS = StaticPrefs::security_intermediate_preloading_healer_timer_interval_ms(); @@ -2174,7 +2170,7 @@ nsresult nsNSSComponent::MaybeEnableIntermediatePreloadingHealer() { getter_AddRefs(mIntermediatePreloadingHealerTimer), IntermediatePreloadingHealerCallback, nullptr, timerDelayMS, nsITimer::TYPE_REPEATING_SLACK_LOW_PRIORITY, - "IntermediatePreloadingHealer", mIntermediatePreloadingHealerTaskQueue); + "IntermediatePreloadingHealer", socketThread); if (NS_FAILED(rv)) { MOZ_LOG(gPIPNSSLog, LogLevel::Error, ("NS_NewTimerWithFuncCallback failed")); |