diff --git a/modules/libpr0n/src/imgContainer.cpp b/modules/libpr0n/src/imgContainer.cpp index 0ded48408bf4..e143ef4f3e24 100644 --- a/modules/libpr0n/src/imgContainer.cpp +++ b/modules/libpr0n/src/imgContainer.cpp @@ -1624,7 +1624,8 @@ nsresult imgContainer::DoComposite(imgFrame** aFrameToUse, return rv; } needToBlankComposite = PR_TRUE; - } else if (aNextFrameIndex == 1) { + } else if (aNextFrameIndex != mAnim->lastCompositedFrameIndex+1) { + // When we are looping the compositing frame needs to be cleared. needToBlankComposite = PR_TRUE; }