From 0fe551068d5cb0e7e2e7d867acc20274704e7295 Mon Sep 17 00:00:00 2001 From: Kershaw Chang Date: Thu, 4 Mar 2021 19:54:27 +0000 Subject: [PATCH] Bug 1696429 - Avoid racing on mThroughCaptivePortal r=necko-reviewers,dragana Differential Revision: https://phabricator.services.mozilla.com/D107257 --- netwerk/protocol/http/nsHttpHandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwerk/protocol/http/nsHttpHandler.h b/netwerk/protocol/http/nsHttpHandler.h index 5d7bf79e5fe5..aeeb889fd007 100644 --- a/netwerk/protocol/http/nsHttpHandler.h +++ b/netwerk/protocol/http/nsHttpHandler.h @@ -832,7 +832,7 @@ class nsHttpHandler final : public nsIHttpProtocolHandler, nsTHashtable mExcludedHttp2Origins; nsTHashtable mExcludedHttp3Origins; - bool mThroughCaptivePortal; + Atomic mThroughCaptivePortal; // The mapping of channel id and the weak pointer of nsHttpChannel. nsDataHashtable mIDToHttpChannelMap;