Bug 1814215: Add a release assert r=valentin,necko-reviewers, a=dmeehan

Differential Revision: https://phabricator.services.mozilla.com/D179449
This commit is contained in:
Randell Jesup 2023-06-06 13:12:46 +00:00
parent f62116c417
commit fb367e8e16

View File

@ -88,6 +88,7 @@ nsHttpChannelAuthProvider::nsHttpChannelAuthProvider()
mHttpHandler(gHttpHandler) {}
nsHttpChannelAuthProvider::~nsHttpChannelAuthProvider() {
MOZ_RELEASE_ASSERT(NS_IsMainThread());
MOZ_ASSERT(!mAuthChannel, "Disconnect wasn't called");
}