diff --git a/dom/media/MediaDecoder.cpp b/dom/media/MediaDecoder.cpp index ab644627e085..8c9a26c99384 100644 --- a/dom/media/MediaDecoder.cpp +++ b/dom/media/MediaDecoder.cpp @@ -386,16 +386,11 @@ void MediaDecoder::StartDormantTimer() { MOZ_ASSERT(NS_IsMainThread()); - if (!IsHeuristicDormantSupported()) { - return; - } - if (mIsHeuristicDormant || - IsShutdown() || + if (!IsHeuristicDormantSupported() || + mIsHeuristicDormant || mIsVisible || - (mPlayState != PLAY_STATE_PAUSED && - !IsEnded())) - { + (mPlayState != PLAY_STATE_PAUSED && !IsEnded())) { return; }