diff --git a/netwerk/protocol/http/HttpChannelChild.cpp b/netwerk/protocol/http/HttpChannelChild.cpp index 28d0425f0f0..0fe9352e0e2 100644 --- a/netwerk/protocol/http/HttpChannelChild.cpp +++ b/netwerk/protocol/http/HttpChannelChild.cpp @@ -2242,6 +2242,8 @@ HttpChannelChild::DivertToParent(ChannelDiverterChild **aChild) void HttpChannelChild::ResetInterception() { + NS_ENSURE_TRUE_VOID(gNeckoChild != nullptr); + if (mInterceptListener) { mInterceptListener->Cleanup(); }