[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser/tor-browser-78.11.0esr-10.5-1] fixup! Bug 40475: Include clearing CORS preflight cache
commit 0f2ac709c04851627d75a7eb9ba32a4ecf7debf7
Author: Richard Pospesel <richard@xxxxxxxxxxxxxx>
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,
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits