Bug 1696429 - Avoid racing on mThroughCaptivePortal r=necko-reviewers,dragana

Differential Revision: https://phabricator.services.mozilla.com/D107257
This commit is contained in:
Kershaw Chang 2021-03-04 19:54:27 +00:00
parent cae8a0ef30
commit 0fe551068d

View File

@ -832,7 +832,7 @@ class nsHttpHandler final : public nsIHttpProtocolHandler,
nsTHashtable<nsCStringHashKey> mExcludedHttp2Origins;
nsTHashtable<nsCStringHashKey> mExcludedHttp3Origins;
bool mThroughCaptivePortal;
Atomic<bool, Relaxed> mThroughCaptivePortal;
// The mapping of channel id and the weak pointer of nsHttpChannel.
nsDataHashtable<nsUint64HashKey, nsWeakPtr> mIDToHttpChannelMap;