Skip to content

Commit

Permalink
Bug 1637869 - P1. Cancel channel before resuming. r=mattwoodrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Yves Avenard committed May 22, 2020
1 parent 10dcc9c commit aa02bf4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netwerk/ipc/DocumentLoadListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ void DocumentLoadListener::FinishReplacementChannelSetup(bool aSucceeded) {

if (!mRedirectChannelId) {
if (!aSucceeded) {
mChannel->Cancel(NS_BINDING_ABORTED);
mChannel->Resume();
return;
}
Expand Down Expand Up @@ -859,6 +860,7 @@ void DocumentLoadListener::FinishReplacementChannelSetup(bool aSucceeded) {
if (redirectChannel) {
redirectChannel->Delete();
}
mChannel->Cancel(NS_BINDING_ABORTED);
mChannel->Resume();
if (auto* ctx = GetBrowsingContext()) {
ctx->EndDocumentLoad(this);
Expand Down

0 comments on commit aa02bf4

Please sign in to comment.