[tor-commits] [tor-browser/tor-browser-78.11.0esr-10.5-1] fixup! Bug 40475: Include clearing CORS preflight cache

sysrqb at torproject.org sysrqb at torproject.org
Tue Jun 22 14:59:25 UTC 2021


commit 0f2ac709c04851627d75a7eb9ba32a4ecf7debf7
Author: Richard Pospesel <richard at torproject.org>
Date:   Tue Jun 22 15:37:00 2021 +0200

    fixup! Bug 40475: Include clearing CORS preflight cache
---
 netwerk/protocol/http/nsCORSListenerProxy.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/netwerk/protocol/http/nsCORSListenerProxy.cpp b/netwerk/protocol/http/nsCORSListenerProxy.cpp
index d9b658af881b..6d2e160c2a9b 100644
--- a/netwerk/protocol/http/nsCORSListenerProxy.cpp
+++ b/netwerk/protocol/http/nsCORSListenerProxy.cpp
@@ -348,7 +348,9 @@ void nsCORSListenerProxy::Shutdown() {
 
 /* static */
 void nsCORSListenerProxy::Clear() {
-  sPreflightCache->Clear();
+  if (sPreflightCache) {
+    sPreflightCache->Clear();
+  }
 }
 
 nsCORSListenerProxy::nsCORSListenerProxy(nsIStreamListener* aOuter,





More information about the tor-commits mailing list