diff --git a/image/imgRequestProxy.cpp b/image/imgRequestProxy.cpp index 008bbcfb9315..a1d19b37e495 100644 --- a/image/imgRequestProxy.cpp +++ b/image/imgRequestProxy.cpp @@ -515,12 +515,12 @@ imgRequestProxy::CancelAndForgetObserver(nsresult aStatus) LOG_SCOPE(gImgLog, "imgRequestProxy::CancelAndForgetObserver"); mCanceled = true; + mForceDispatchLoadGroup = true; if (GetOwner()) { GetOwner()->RemoveProxy(this, aStatus); } - mForceDispatchLoadGroup = true; RemoveFromLoadGroup(); mForceDispatchLoadGroup = false;