diff --git a/content/smil/nsSMILAnimationController.cpp b/content/smil/nsSMILAnimationController.cpp index 1b19e9bf393..d486dd973b4 100644 --- a/content/smil/nsSMILAnimationController.cpp +++ b/content/smil/nsSMILAnimationController.cpp @@ -358,6 +358,10 @@ nsSMILAnimationController::DoSample(bool aSkipUnchangedContainers) NS_ERROR("Shouldn't be sampling after document has disconnected"); return; } + if (mRunningSample) { + NS_ERROR("Shouldn't be recursively sampling"); + return; + } mResampleNeeded = false; // Set running sample flag -- do this before flushing styles so that when we