diff --git a/netwerk/ipc/DocumentLoadListener.cpp b/netwerk/ipc/DocumentLoadListener.cpp index a8574f44fc7a..932ef19f8eb8 100644 --- a/netwerk/ipc/DocumentLoadListener.cpp +++ b/netwerk/ipc/DocumentLoadListener.cpp @@ -805,6 +805,7 @@ void DocumentLoadListener::FinishReplacementChannelSetup(nsresult aResult) { if (NS_FAILED(aResult)) { mChannel->Cancel(aResult); mChannel->Resume(); + DisconnectChildListeners(aResult, aResult); return; } ApplyPendingFunctions(mChannel);